From 934b469534b3f072c15ec2c004d074bd2d899505 Mon Sep 17 00:00:00 2001 From: Marc Dimmerling Date: Fri, 9 Feb 2024 17:13:27 +0100 Subject: [PATCH] LoadNote_ --- src/main/java/Notizbuch.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/Notizbuch.java b/src/main/java/Notizbuch.java index 180a701..1c1bd38 100644 --- a/src/main/java/Notizbuch.java +++ b/src/main/java/Notizbuch.java @@ -6,11 +6,7 @@ import java.awt.event.*; import java.io.*; import javax.swing.JFrame; -import Test_Package.BorderLayout; -import Test_Package.JButton; -import Test_Package.JPanel; -import Test_Package.JScrollPane; -import Test_Package.JTextArea; + @@ -46,8 +42,17 @@ public class Notizbuch extends JFrame implements ActionListener { @Override public void actionPerformed(ActionEvent e) { if (e.getSource() == saveButton) { - + saveNote(); + } else if (e.getSource() == loadButton) { + loadNote(); } } + + private void saveNote() { + + } + private void loadNote() { + + } } \ No newline at end of file