|
@ -51,7 +51,7 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
JOptionPane.showMessageDialog(this, "Fehler beim Speichern der Notiz: " + e.getMessage()); |
|
|
JOptionPane.showMessageDialog(this, "Fehler beim Speichern der Notiz: " + e.getMessage()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Methode zum Laden von Notizen |
|
|
public void loadNote() { |
|
|
public void loadNote() { |
|
|
try (BufferedReader reader = new BufferedReader(new FileReader("notizen.txt"))) { |
|
|
try (BufferedReader reader = new BufferedReader(new FileReader("notizen.txt"))) { |
|
|
StringBuilder noteText = new StringBuilder(); |
|
|
StringBuilder noteText = new StringBuilder(); |
|
|