void jListOnlineUsers_mouseClicked(MouseEvent e) {
   if (e.getClickCount() == 2) {
     jTextFieldTargetUser.setText(((HostItem) jListOnlineUsers.getSelectedValue()).name);
     Flasher.instance().flashBackground(jTextFieldTargetUser, Color.yellow, 2);
     jTextFieldSendMessages.requestFocus();
   }
 }
Exemple #2
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
    }
  }
Exemple #3
0
 void jList1_mouseClicked(MouseEvent e) {
   int indx = jList1.getLeadSelectionIndex();
   jTextPane2.setText(((applicant) appList.elementAt(indx)).getDescription());
   try {
     currPicture =
         new ImageIcon(
             "../Blackwood Client/src/edu/nodak/ndsu/cs/lions/blackwood/Resources/Image/people/"
                 + ((applicant) jList1.getSelectedValue()).Picture
                 + ".gif");
     repaint();
   } catch (Exception ex) {
     ex.printStackTrace();
   }
 }