Change JCheckBox/JRadioButton selection color

ぐ巨炮叔叔 提交于 2019-11-30 23:17:55

Here is how to do it for a JCheckBox

UIManager.put("CheckBox.focus",Color.RED);

There is a nice tool here: http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/ that if you run the Java Web Start program it will allow you to browse the keys and values for each component.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!