This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes changing text color on selected JTabbedPane tab Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "changing text color on selected JTabbedPane tab" Watch "changing text color on selected JTabbedPane tab" New topic
Author

changing text color on selected JTabbedPane tab

robyn byrd
Greenhorn

Joined: Oct 26, 2005
Posts: 9
I have a JTabbedPane with black tabs and white lettering on the tabs.
I am using UIManager.put("TabbedPane.selected", Color.green) to change a tab color to green when it is selected. The lettering remains white, but I would like it to change to black when the tab is selected. Is there a way to do this?
Thank you.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this is one way

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: changing text color on selected JTabbedPane tab
 
Similar Threads
Colour of tabs in a JTabbedPane
Highlight the Selected Tab in JTabbed Pane
JTabbedPane
JTabs urgent!!!!!
Change Mouse Cursor with JTabbedPane