|
@ -56,6 +56,7 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
while (true) { |
|
|
while (true) { |
|
|
String message = fromServerReader.readLine(); |
|
|
String message = fromServerReader.readLine(); |
|
|
outputTextArea.append(message + "\n"); |
|
|
outputTextArea.append(message + "\n"); |
|
|
|
|
|
outputScrollPane.getVerticalScrollBar().setValue(outputScrollPane.getVerticalScrollBar().getMaximum()); |
|
|
} |
|
|
} |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|
JOptionPane.showMessageDialog(null, "Verbindung zum Server \"" + address + "\" fehlgeschlagen."); |
|
|
JOptionPane.showMessageDialog(null, "Verbindung zum Server \"" + address + "\" fehlgeschlagen."); |
|
|