diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 2cfdfd0..fbc9b4e 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -46,6 +46,7 @@ public class ChatClient extends JFrame implements KeyListener { setVisible(true); setSize(WINDOW_WIDTH, WINDOW_HEIGHT); setDefaultCloseOperation(EXIT_ON_CLOSE); + setLocationRelativeTo(null); } private void receiveMessages() { try {