|
@ -42,7 +42,7 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Methode zum Speichern von Notizen |
|
|
public void saveNote() { |
|
|
public void saveNote() { |
|
|
try (PrintWriter writer = new PrintWriter(new FileWriter("notizen.txt"))) { |
|
|
try (PrintWriter writer = new PrintWriter(new FileWriter("notizen.txt"))) { |
|
|
writer.print(getTextArea().getText()); |
|
|
writer.print(getTextArea().getText()); |
|
|