|
|
@ -14,7 +14,7 @@ public class ClientHandler implements Runnable { |
|
|
|
public ClientHandler(ChatServer chatServer, Socket connectionToClient) { |
|
|
|
this.chatServer = chatServer; |
|
|
|
this.connectionToClient = connectionToClient; |
|
|
|
name = JOptionPane.showInputDialog("welcher Benutzername?"); |
|
|
|
name = JOptionPane.showInputDialog("Benutzername für neuen Client vergeben"); |
|
|
|
|
|
|
|
new Thread(this).start();} // Start a new thread for this client handler |
|
|
|
|
|
|
|