From b36e2f63fc487d3eb992e29b77dc5a165594ea2e Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Fri, 2 Feb 2024 20:35:58 +0100 Subject: [PATCH] Create IP-address input field --- src/main/java/ChatClient.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index a237dce..c4f2737 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -1,11 +1,12 @@ +import javax.swing.*; + public class ChatClient { + private String address; public ChatClient() { - // Constructor Method - + address = JOptionPane.showInputDialog("bitte IP-Adresse"); } public static void main(String[] args) { - System.out.println("Test"); - + new ChatClient(); } -} +} \ No newline at end of file