From f86e159e373716b95c7c13fe29419d0b30b7c2d8 Mon Sep 17 00:00:00 2001 From: BerdanInformatik123 Date: Sun, 16 May 2021 21:16:00 +0200 Subject: [PATCH] Variablen auf Private --- src/client/Client1.java | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/client/Client1.java b/src/client/Client1.java index fba7c0d..dea3ebc 100644 --- a/src/client/Client1.java +++ b/src/client/Client1.java @@ -32,20 +32,20 @@ public class Client1 extends JFrame { * Methoden genutzt werden können. */ private static JPanel contentPane; - JTextField txtMessage; + private static JTextField txtMessage; private static JTextField txtUsername; - public static String currentText = " "; - public static int i = 0; - public static Object tosend = new Message("Leer", "Leer"); - public static Client1 t1; - public static Socket socket; - public static ObjectInputStream obinstr; - public static ObjectOutputStream oboust; - public static boolean verbunden = false; - public static JTextArea textArea = new JTextArea(); - public static int anzahlVersuche = 0; //Ist gleich die AN - public static int anzahlRekursionen = 0; - public static Message temp = new Message("leer", "leer"); + private static String currentText = " "; + private static int i = 0; + private static Object tosend = new Message("Leer", "Leer"); + private static Client1 t1; + private static Socket socket; + private static ObjectInputStream obinstr; + private static ObjectOutputStream oboust; + private static boolean verbunden = false; + private static JTextArea textArea = new JTextArea(); + private static int anzahlVersuche = 0; //Ist gleich die AN + private static int anzahlRekursionen = 0; + private static Message temp = new Message("leer", "leer"); /** * In der main Methode wird das GUI erstellt und die start() Methode