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 tab colour

858586Feb 4 2012 — edited Feb 8 2012
whenever i use the following:
try {
	UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
	System.out.println(e.toString());
}
and when i do this:
tabbedPane.setBackgroundAt(1, Color.RED);
the background colour of the tab does not change. it would change if i do not use "UIManager.setLookAndFeel", but the whole app would look like crap.

is there a way to change the colour of the tab without taking away "UIManager.setLookAndFeel()"?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2012
Added on Feb 4 2012
4 comments
274 views