From 6ef937e2cc48aee7ee26624c7188880d7623393d Mon Sep 17 00:00:00 2001 From: BerdanInformatik123 Date: Sun, 16 May 2021 13:32:06 +0200 Subject: [PATCH] Kommentare --- src/client/Client.java | 6 ++++++ src/client/Client1.java | 5 +++-- src/client/MainClient1.java | 2 +- src/utils/Message.java | 7 +++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/client/Client.java b/src/client/Client.java index c6df47a..9881cb6 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -34,6 +34,12 @@ public class Client extends JFrame { public static Socket socket; public static ObjectInputStream obinstr; public static ObjectOutputStream oboust; + + /** + * Beta Version des Clients + * @version 0.0.2 + * @author berdan + */ diff --git a/src/client/Client1.java b/src/client/Client1.java index 4a601db..0c5d391 100644 --- a/src/client/Client1.java +++ b/src/client/Client1.java @@ -49,6 +49,7 @@ public class Client1 extends JFrame { public static int j = 0; public static JTextArea textArea = new JTextArea(); public static int k = 0; + public static Message temp = new Message("leer", "leer"); /* In der main Methode wird das GUI erstellt und die @@ -130,7 +131,7 @@ public class Client1 extends JFrame { tosend = new Message(theusername, themessage); i = 1; - Message temp = new Message(theusername, themessage); + temp = new Message(theusername, themessage); System.out.println("Button pressed"); @@ -278,7 +279,7 @@ public class Client1 extends JFrame { - while(!message.getMessage().equals("exit")){ + while(!temp.getMessage().equals("exit")){ System.out.println("WHILE"); try{ //System.out.println("hile4"); diff --git a/src/client/MainClient1.java b/src/client/MainClient1.java index db2c678..bbe95af 100644 --- a/src/client/MainClient1.java +++ b/src/client/MainClient1.java @@ -20,7 +20,7 @@ import java.io.*; import java.net.*; /** - * Hauptklasse des Clients + * Hauptklasse des Dummy-Clients * @version 0.0.1 * @author eichehome */ diff --git a/src/utils/Message.java b/src/utils/Message.java index a9d8177..c4b7fd3 100644 --- a/src/utils/Message.java +++ b/src/utils/Message.java @@ -7,6 +7,13 @@ import java.time.format.DateTimeFormatter; import java.time.format.FormatStyle; import java.util.Date; + /** + * Die Klasse erzeugt die Message-Objekte + * @version 0.0.2 + * @author berdan + */ + + public class Message implements Serializable { String username;