This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

question about background colors in jtabbedpane  RSS feed

 
Ranch Hand
Posts: 49
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello, world!

i need some tip about a design problem that bothers me in one of my apps. i have a jtabbedpane component in
which i need to set my own defined look like background and foreground colors. its more of a design dilemma
im facing. i have used the uimanager interface to "turn off" the default style of the jtabbedpane component
like background, bordercolor, foreground etc.

my question is what would be the best colors for a jtabbedpane in its tabs when the user selects them.
at startup the tabs contains a white background and a black foreground. i dont want to use hexadecimal
values to create my own colors only those found in the SystemColor class. i am using the bellow method to set
the background and foreground in the jtabbedpane object which i then invoke through a changelistener event call.



listed below the current line is my code for the setting of the uimanager properties.






i hope i havent missed out any and explained my propblem well. any tip here will be gladly appreciated.

regards,
krillian.
 
Sheriff
Posts: 21327
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our UI forum.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!