Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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

background color for a JCheckbox  RSS feed

 
kate damond
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to set the background colour for a JCheckbox, so that the label bit is on a different colour, but keep the actual box that you tick in the original colour ?
Most of my applet is a nice purple coour, but this checkbox lael is light grey. If I make it purple, you then can't see the tickbox.
Cheers,
Kate
 
Javaoops
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have u tried out
JComboBox_variable.setOpaque(true);
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!