lundi 26 novembre 2018

Unchecking a checkbox

(AWT) I have a frame with a text field + a checkbox group consisting of 8 checkboxes. I want to check a box, enter the text info, and perform an action. Then the 2nd time in I would like the text to remain as is and all of the boxes to be UN-checked. To that end, after the 1st action, I uncheck the box with "this:dispCB.setState(false)"; Unfortunately is doesn't uncheck anything, but if I simply check any other box, then it clears the last used box and I can go back and use it again. Not a good solution. Any suggestions? Thanks!




Aucun commentaire:

Enregistrer un commentaire