Kommentare
This commit is contained in:
parent
a1fc2b1fb6
commit
6ef937e2cc
4 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -20,7 +20,7 @@ import java.io.*;
|
|||
import java.net.*;
|
||||
|
||||
/**
|
||||
* Hauptklasse des Clients
|
||||
* Hauptklasse des Dummy-Clients
|
||||
* @version 0.0.1
|
||||
* @author eichehome
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue