I am trying to change the color of a JToggleButton
when it has been selected in a reliable, look and feel independent way.
If using the Metal L&F, t
When it using "Windows look and feel"; in Netbeans you have to do only two things.
In other way,
jToggleButton.setContentAreaFilled(false);
jToggleButton.setOpaque(true);
jToggleButton.setBackground(Color.red); //Your color here
That's all.:-)