i changed the background color of my JTextField to black when it is disabled. I do this using the UIManager
and this property TextField.disabledBackground, that i set at application start up. I would like to know how can i change the background color when the JTextField is enabled again ?
Thank you.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Have a look at http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/ Run the webstart app there, or download the code and run that utility yourself. What you want might be "TextField.background", but armed with the list of properties and defaults, you'll find the right one I bet.