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!

can i change the color of the text of a JButton, when it is disabled?

843804May 10 2005 — edited May 13 2005
Hi,

I want to keep the black foreground of my JButton even after I disable it. I have tried using:

.setForeground(Color.black);

but it remains gray. Is there anyway to do this?

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2005
Added on May 10 2005
13 comments
620 views