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.
相关问题
- Listen for mouse released event on component on wh
- Adding panels to frame, but not showing when app i
- Java Swing: How to prevent system copy,cut,paste a
- Unable to get column index with table.getColumn me
- JTextField resizing upon minimize
相关文章
- Java, Swing: how do I set the maximum width of a J
- Programming a touch screen application with SWING
- How to make pixel perfect Line2D in - Graphics2D
- Java: Look and Feel
- How can I set the insets of a JFrame?
- JcomboBox multiple selection
- “Un-rollover” a JButton when a JOptionPane is disp
- How to remove the padding between in the JPanel st
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.