Change the color of a JCheckBox / JRadioButton selection

Is there a way to change the flag / radio highlight color?

alt text

+3
source share
1 answer

Here's how to do it for JCheckBox

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

There is a good tool here: http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/ , which, if you run the Java Web Start program, will allow you to view the keys and values ​​for each component.

+6
source

Source: https://habr.com/ru/post/1783684/


All Articles