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 still selected.
private void nextQuestionButtonActionPerformed(java.awt.event.ActionEvent evt) {
clearOptions();
}
public void clearOptions ()
{
//Make sure the check boxes are not checked
optionA.setSelected(false);
optionB.setSelected(false);
optionC.setSelected(false);
optionD.setSelected(false);
}