diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 95aa15f..ae08a81 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -36,7 +36,7 @@ public class ChatClient extends JFrame implements KeyListener { inputTextField.setBorder(BorderFactory.createTitledBorder("Nachricht eingeben")); inputTextField.addKeyListener(this); - add(outputTextArea, BorderLayout.CENTER); + add(outputScrollPane, BorderLayout.CENTER); add(inputTextField, BorderLayout.SOUTH); setVisible(true);