diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 695f622..8d0b776 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -42,9 +42,7 @@ public class ChatClient extends JFrame implements KeyListener { } private void receiveMessages() { try { - // Um GUI zu testen - // Kommentar in der Zeile 28 wird weggenohmen, wenn der Server erstellt wird. - // connectionToServer = new Socket(address, port); + connectionToServer = new Socket(address, port); initGui(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Verbindung zum Server \"" + address + "\" fehlgeschlagen.");