Browse Source

while schleife in receive Message (kommentar)

remotes/origin/server
Marc Dimmerling 11 months ago
parent
commit
b892c62023
  1. 12
      src/main/java/ChatClient.java

12
src/main/java/ChatClient.java

@ -47,7 +47,17 @@ public class ChatClient extends JFrame implements KeyListener {
try {
connectionToServer = new Socket(address, port);
initGui();
} catch (Exception e) {
// while (true) {
// String message = fromServerReader.readLine();
// outputTextArea.append(message + "\n");
// }
// Solang fromServerReader nicht erstellt ist als Kommentar
}
catch (Exception e) {
JOptionPane.showMessageDialog(null, "Verbindung zum Server \"" + address + "\" fehlgeschlagen.");
}
}

Loading…
Cancel
Save