|
@ -143,6 +143,8 @@ public class ChatGUI implements ActionListener { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// add-message method with time stamp |
|
|
private void addMessage(String message) { |
|
|
private void addMessage(String message) { |
|
|
String timeStamp = new SimpleDateFormat("HH:mm:ss").format(new Date()); |
|
|
String timeStamp = new SimpleDateFormat("HH:mm:ss").format(new Date()); |
|
|
outputTextArea.append("[" + timeStamp + "] " + message + "\n"); |
|
|
outputTextArea.append("[" + timeStamp + "] " + message + "\n"); |
|
|