Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

changing text color on selected JTabbedPane tab  RSS feed

 
robyn byrd
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is one way

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!