Hi, im trying a made a read only checkbox. i used the "setenable(false)" but the checkbox got blurred.
When i used setFocusable( false ) to a textbox, the text cannot be edited,thats what i wanted to do with the checkbox but the setFocusable( false ) has no effect with the checkbox.
Hope somebody can help.
Thanks.
Users expect disabled components to be grayed out, but nevertheless: build
an ActionListener that stores the initial state of the checkbox and register
it at that same checkbox. Whenever its actionPerformed() method is called
the state of the checkbox has changed; the actionPerformed method should
check wether or not the current state equals the initial state. If it doesn't
change the checkbox state back again.
This effectively annihilates the functionality of the check box (as if it were
disabled) but it isn't grayed out.
kind regards,
Jos