)) + "\n";
content += s + msg + "\n";
getContentText().setText(content);
getMsgText().setText("");
try {
PrintStream ps = new PrintStream(socket.getOutputStream());
ps.println(msg);
} catch (IOException e1) {
e1.printStackTrace();
}
} else if (e.getActionCommand().equals("Cancel")) {
System.exit(0);
}
}