uncheck checkboxes in java

后端 未结 5 911
借酒劲吻你
借酒劲吻你 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:39

    The easiest way to do this is to apply the same button group to all of your checkboxes. And then just use:

    buttonGroup1.clearSelection();
    

    After trying almost every method. This one is by far the easiest and the most efficient one.

提交回复
热议问题