// 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 updateComplete() { pPickupLocos.repaint(); pSetoutLocos.repaint(); pPickups.repaint(); pSetouts.repaint(); pMoves.repaint(); pPickupLocos.revalidate(); pSetoutLocos.revalidate(); pPickups.revalidate(); pSetouts.revalidate(); pMoves.revalidate(); selectButton.setEnabled(checkBoxes.size() > 0 && !isSetMode); clearButton.setEnabled(checkBoxes.size() > 0 && !isSetMode); check(); log.debug("update complete"); }
// confirm that all work is done @Override protected void checkBoxActionPerformed(ActionEvent ae) { check(); }