From 2e7f779477dab3bba64ac5930a858cd4b0d31484 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Wed, 7 Feb 2024 20:04:41 +0100 Subject: [PATCH] ScrollPane mit Parameter --- src/main/java/ChatClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 1068810..95aa15f 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -29,6 +29,8 @@ public class ChatClient extends JFrame implements KeyListener { outputTextArea = new JTextArea(); outputTextArea.setEditable(false); outputTextArea.setBorder(BorderFactory.createTitledBorder("Chat")); + + outputScrollPane = new JScrollPane(outputTextArea); inputTextField = new JTextField(); inputTextField.setBorder(BorderFactory.createTitledBorder("Nachricht eingeben"));