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?

[153 byte] By [screen_simua] at [2007-11-27 10:37:33]
# 1

> 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.

camickra at 2007-7-28 18:48:55 > top of Java-index,Desktop,Core GUI APIs...