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!

Change the default background color of a DISABLED JButton

843807Mar 19 2009 — edited Mar 20 2009
Hi , pl help me with the code for changing the default background color of a disabled JButton in a JApplet so that when it is again enabled, it comes back to the existing color.

let me put my question in a different way...

if JButton is disabled
Then it should have a custom color.
else
existing color.

Also, it should return to its previously existing color(color when the applet is initialised) when enabled again.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2009
Added on Mar 19 2009
1 comment
859 views