Exemplo n.º 1
0
 void jListOnlineUsers_mouseClicked(MouseEvent e) {
   if (e.getClickCount() == 2) {
     jTextFieldTargetUser.setText(((HostItem) jListOnlineUsers.getSelectedValue()).name);
     Flasher.instance().flashBackground(jTextFieldTargetUser, Color.yellow, 2);
     jTextFieldSendMessages.requestFocus();
   }
 }
Exemplo n.º 2
0
 public Client() {
   try {
     currentInstance = this;
     jbInit();
     Flasher.instance(); // initialize the flasher instance so that it's currently running
     initializeAttributeSets();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }