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

JCheckBox background color not showing up in Nimbus  RSS feed

 
Bill Clar
Ranch Hand
Posts: 163
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm displaying a table with several read-only pieces of data, and a checkbox field that toggles the row color. The background color for the checkbox is not toggling correctly.

I put together a SSCCE:



If I comment out the Nimbus look and feel, it works as expected. I googled this problem and found one possible solution on Stack Overflow. Their suggestion is:


It's a bug in the synth-installed renderer, quick hack is to force the rendering checkbox opacity to true:




I tried using this line and setting the opacity to true, but it renders the background white. I'm using Java 1.7.0_25.
 
Bill Clar
Ranch Hand
Posts: 163
Eclipse IDE Java Tomcat Server
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!