JTextField background color for on / off

I changed the background color of my JTextField to black when it is disabled. I do this using UIManagerthis property TextField.disabledBackground, which I set when the application started. I would like to know how to change the background color when re-enabling JTextField? Thank.

+3
source share
1 answer

Take a look at http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/ Run the webstart application or download the code and run this utility yourself. What you want may be "TextField.background", but with a list of properties and default values, you will find the correct option.

+3
source

All Articles