Browse Source

refactoring: Code lesbarer

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
771f121d19
  1. 2
      src/main/java/ChatGUI.java

2
src/main/java/ChatGUI.java

@ -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");

Loading…
Cancel
Save