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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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,408 views