aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Change background/foreground color of a disablled object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change background/foreground color of a disablled object" Watch "Change background/foreground color of a disablled object" New topic
Author

Change background/foreground color of a disablled object

D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
Hi,

How I can change background/foreground color of a disablled object (i.e. JCheckBox, JTextField and so on..)?

Thank you, very much!

Domenico
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
Check this out. You can change the back-ground colour. Please go through the API.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

You can use UIManager to manipulate the TextField.disabledBackground.

You will also find this a useful read http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/ *
*The author Rob Camick is one of the active contributors here at the Ranch.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change background/foreground color of a disablled object