From 7ed1ec636edf194b4c5f859808832644b11118da Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Fri, 9 Feb 2024 20:04:12 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Panelsf=C3=BCrButtonKommi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/Notizbuch.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Notizbuch.java b/src/main/java/Notizbuch.java index 3222f1b..2680ba3 100644 --- a/src/main/java/Notizbuch.java +++ b/src/main/java/Notizbuch.java @@ -26,7 +26,8 @@ public class Notizbuch extends JFrame implements ActionListener { saveButton.addActionListener(this); loadButton = new JButton("Laden"); loadButton.addActionListener(this); - + + // Erstellen eines Panels für die Buttons und Hinzufügen der Buttons JPanel buttonPanel = new JPanel(); buttonPanel.add(saveButton); buttonPanel.add(loadButton);