Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable a JCheckBox and leave the text the original color?

843806Sep 4 2008 — edited Sep 5 2008
When a JCheckBox is disabled, its text gets dim (gray). I need to just dim the checkbox but leave the text the original color.

I can't find the code where the text color changes when the box is disabled...

(I have found the code that draws the square and the box at: com.sun.java.swing.plaf.windows.WindowsIconFactory .)

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2008
Added on Sep 4 2008
8 comments
6,545 views