|
@ -46,6 +46,7 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
setVisible(true); |
|
|
setVisible(true); |
|
|
setSize(WINDOW_WIDTH, WINDOW_HEIGHT); |
|
|
setSize(WINDOW_WIDTH, WINDOW_HEIGHT); |
|
|
setDefaultCloseOperation(EXIT_ON_CLOSE); |
|
|
setDefaultCloseOperation(EXIT_ON_CLOSE); |
|
|
|
|
|
setLocationRelativeTo(null); |
|
|
} |
|
|
} |
|
|
private void receiveMessages() { |
|
|
private void receiveMessages() { |
|
|
try { |
|
|
try { |
|
|