Пример #1
0
  void HireFire_actionPerformed(ActionEvent e) {
    applicant selectedEmp; // employee selected by user from jList

    if (!appList.isEmpty()) {
      // Do what you wish the selected applicant
      selectedEmp = (applicant) jList1.getSelectedValue();
      if (selectedEmp.Hired.equals("0"))
        Moo.send("hire " + selectedEmp.ApplicantID + " " + jTextFieldWage.getText());
      else Moo.send("fire");
      Moo.send("get_applicants " + jTextFieldWage.getText()); // refreshes list after changes
    }
  }
Пример #2
0
 void jButtonAdvertise_actionPerformed(ActionEvent e) {
   Moo.send("get_applicants " + jTextFieldWage.getText());
 }