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