I have not got a any code but was just wondering how would I say that I have unselected a JCheckBox. I know how to say .isSelected() so was just wondering if there is any method or way to do unselected preferably using an ActionListener and not an ItemEvent any help greatly appreciated
🙂
>Solution :
you can invert the result of .isSelected():
boolean isNotSelected = !cb.isSelected();