Пример #1
0
 @Override
 public void actionPerformed(ActionEvent ae) {
   if (ae.getSource() == partsPileUpSubmitButton) {
     app.sendObjectToServer(
         new Message("partsPiledUp_" + (String) partsPileUpComboBox.getSelectedItem()));
   }
   if (ae.getSource() == noPartsSubmitButton) {
     app.sendObjectToServer(
         new Message("noGoodParts_" + (String) noGoodPartsComboBox.getSelectedItem()));
   }
   if (ae.getSource() == partsUnstableSubmitButton) {
     app.sendObjectToServer(
         new Message("unstableParts_" + (String) partsUnstableComboBox.getSelectedItem()));
   }
   if (ae.getSource() == partsRobotSubmitButton) {
     app.sendObjectToServer(
         new Message("partsRobotInWay_" + (String) partsRobotComboBox.getSelectedItem()));
   }
 }