From bffeecad92f0e31a8d1c16f744b3383715f339a9 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Wed, 7 Feb 2024 20:06:04 +0100 Subject: [PATCH] TextArea zu ScrollPane --- src/main/java/ChatClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);