|
|
@ -6,12 +6,6 @@ import java.awt.event.*; |
|
|
|
import java.io.*; |
|
|
|
import javax.swing.JFrame; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Notizbuch extends JFrame implements ActionListener { |
|
|
|
|
|
|
|
private JTextArea textArea; |
|
|
@ -57,6 +51,7 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
|
JOptionPane.showMessageDialog(this, "Fehler beim Speichern der Notiz: " + e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void loadNote() { |
|
|
|
try (BufferedReader reader = new BufferedReader(new FileReader("notizen.txt"))) { |
|
|
|
StringBuilder noteText = new StringBuilder(); |
|
|
@ -69,4 +64,4 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
|
JOptionPane.showMessageDialog(this, "Fehler beim Laden der Notiz: " + e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |