// Select, Clear, and Set Buttons @Override public void buttonActionPerformed(ActionEvent ae) { if (ae.getSource() == selectButton) { selectCheckboxes(true); } if (ae.getSource() == clearButton) { selectCheckboxes(false); } if (ae.getSource() == setButton) { isSetMode = !isSetMode; // toggle setMode update(); } check(); }
protected void clearAndUpdate() { trainCommon.clearUtilityCarTypes(); // reset the utility car counts checkBoxes.clear(); isSetMode = false; update(); }