Ejemplo n.º 1
0
 /**
  * This method sends the message typed into the chat box to the Client class to be sent to the
  * server as a SHOUT.
  */
 public void sendMessage() {
   String message = chatPanel.getMessage();
   if (!message.equals("")) {
     client.sendShout(message);
   }
 }