Say I have a
JToggleButton but = new JToggleButton("OK") ;
Now I need the state of but when it is clicked. I mean I need to know if it's clicked or not.
but