/** * 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); } }