开发者

JTextField background color on enable/disable

开发者 https://www.devze.com 2023-03-08 13:59 出处:网络
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开发者_Go百科 application start

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开发者_Go百科 application start up. I would like to know how can i change the background color when the JTextField is enabled again ? Thank you.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号