Kommentare

This commit is contained in:
BerdanInformatik123 2021-05-16 13:32:06 +02:00
parent a1fc2b1fb6
commit 6ef937e2cc
4 changed files with 17 additions and 3 deletions

View file

@ -34,6 +34,12 @@ public class Client extends JFrame {
public static Socket socket; public static Socket socket;
public static ObjectInputStream obinstr; public static ObjectInputStream obinstr;
public static ObjectOutputStream oboust; public static ObjectOutputStream oboust;
/**
* Beta Version des Clients
* @version 0.0.2
* @author berdan
*/

View file

@ -49,6 +49,7 @@ public class Client1 extends JFrame {
public static int j = 0; public static int j = 0;
public static JTextArea textArea = new JTextArea(); public static JTextArea textArea = new JTextArea();
public static int k = 0; public static int k = 0;
public static Message temp = new Message("leer", "leer");
/* /*
In der main Methode wird das GUI erstellt und die In der main Methode wird das GUI erstellt und die
@ -130,7 +131,7 @@ public class Client1 extends JFrame {
tosend = new Message(theusername, themessage); tosend = new Message(theusername, themessage);
i = 1; i = 1;
Message temp = new Message(theusername, themessage); temp = new Message(theusername, themessage);
System.out.println("Button pressed"); 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"); System.out.println("WHILE");
try{ try{
//System.out.println("hile4"); //System.out.println("hile4");

View file

@ -20,7 +20,7 @@ import java.io.*;
import java.net.*; import java.net.*;
/** /**
* Hauptklasse des Clients * Hauptklasse des Dummy-Clients
* @version 0.0.1 * @version 0.0.1
* @author eichehome * @author eichehome
*/ */

View file

@ -7,6 +7,13 @@ import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle; import java.time.format.FormatStyle;
import java.util.Date; import java.util.Date;
/**
* Die Klasse erzeugt die Message-Objekte
* @version 0.0.2
* @author berdan
*/
public class Message implements Serializable { public class Message implements Serializable {
String username; String username;