Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTabbedPane - colour tabs

793881Mar 14 2009 — edited Mar 14 2009
How can I paint the tabs in a JTabbedPane. I tried using setBackGroundAt(...) but than only tha non-selected tabs are painted (in my case black). So I tried setForeGroundAt(..) too, but this didn't paint the selected tab. Any ideas on how to do this? (Should I use an SSCCE to explain this, or is it obvious whitout?)

Thanks,
Sam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2009
Added on Mar 14 2009
7 comments
477 views