uncheck checkboxes in java

后端 未结 5 904
借酒劲吻你
借酒劲吻你 2021-01-02 17:04

In my program, I want to uncheck all the checkboxes whenever this method is called. Can someone explain why it isn\'t working? Whenever I call this method the checkboxes are

5条回答
  •  一生所求
    2021-01-02 17:27

    first of all you need to bring all of the check box s code on the top of your for example state change method & after that for uncheck the check box you can make a variable like state & put the variable value on false & after that you can call the checkbox.setSelected(false); or boolean state = false; CheckBox.setSelected(state);that's it !!!

提交回复
热议问题