From 503549677f11a304b19b5e0a6ca2baf4e6f5f625 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Fri, 9 Feb 2024 17:01:13 +0100 Subject: [PATCH] new_ScrollPane --- src/main/java/Notizbuch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/Notizbuch.java b/src/main/java/Notizbuch.java index 73ca6e0..fe05dcd 100644 --- a/src/main/java/Notizbuch.java +++ b/src/main/java/Notizbuch.java @@ -7,6 +7,7 @@ import java.io.*; import javax.swing.JFrame; import Test_Package.BorderLayout; +import Test_Package.JScrollPane; import Test_Package.JTextArea; @@ -26,6 +27,7 @@ public class Notizbuch extends JFrame implements ActionListener { setLayout(new BorderLayout()); textArea = new JTextArea(); + add(new JScrollPane(textArea), BorderLayout.CENTER); } @Override