Vincent Roye Vincent Roye - 3 days ago 5
Java Question

Java Swing remove LAF style from checkbox

I would like to remove the blue thing aroud the LAF JCheckbox :

enter image description here

How can I do ?

Thank you very much

Answer

The Icon is part of the LAF.

If you don't like the default Icons, then you can always provide your own:

checkBox.setIcon(...);
checkBox.setSelectedIcon(...);
Comments