예제 #1
0
 // 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();
 }
예제 #2
0
  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");
  }
예제 #3
0
 // confirm that all work is done
 @Override
 protected void checkBoxActionPerformed(ActionEvent ae) {
   check();
 }