From 3f4a302efcc17102265600cf5369c20af4fed0a5 Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Mon, 5 Feb 2024 21:19:44 +0100 Subject: [PATCH] Establish connection to server --- src/main/java/ChatClient.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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.");