setBackgroud for JToggleButten does not work correctly
I am trying to setBackground for JToggleButton and it does not change background color unless I click it many times. Any idea what could be wrong?
I am trying to setBackground for JToggleButton and it does not change background color unless I click it many times. Any idea what could be wrong?
> Any idea what could be wrong?
Nope.
If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
see http://homepage1.nifty.com/algafield/sscce.html,
that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
Don't forget to use the "Code Formatting Tags",
see http://forum.java.sun.com/help.jspa?sec=formatting,
so the posted code retains its original formatting.