Package voxo.common.packets

Examples of voxo.common.packets.ClientRequestPacket


      // if yes, erase user
      int value = ((Integer) optionPane.getValue()).intValue();
      if (value == JOptionPane.YES_OPTION) {

        ClientRequestPacket p = new ClientRequestPacket(mainView.getMe().getUsername(), mainView.getSelectedUser().getUsername());
        new RemoveContactAction(c, p);
      }
    }
  }
View Full Code Here


 
  @Override
  public void actionPerformed(ActionEvent e) {
   
    if (e.getSource() == customR.getRefuse()){
      new RemoveContactAction(mainView.getC(), new ClientRequestPacket(mainView.getMe().getUsername(), u.getUsername()));
    }else {
 
    new ConfirmContactAction(mainView.getC(), new ClientRequestPacket(mainView.getMe().getUsername(), u.getUsername()));
    }
  }
View Full Code Here

    this.u=u;
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    new AddContactAction(new ClientRequestPacket(mainView.getMe().getUsername(), u.getUsername()));
    JOptionPane.showMessageDialog(mainView, "Friend request send to : "+ u.getUsername(), "Friend Request", JOptionPane.WARNING_MESSAGE);
  }
View Full Code Here

TOP

Related Classes of voxo.common.packets.ClientRequestPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.