Browse Source

Refactor: open window in the center

remotes/origin/feature/client/exchange-messages-between-client-server
Alena Bandarovich 11 months ago
parent
commit
48a78f41dd
  1. 1
      src/main/java/ChatClient.java

1
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 {

Loading…
Cancel
Save