|
@ -6,12 +6,6 @@ import java.awt.event.*; |
|
|
import java.io.*; |
|
|
import java.io.*; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JFrame; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Notizbuch extends JFrame implements ActionListener { |
|
|
public class Notizbuch extends JFrame implements ActionListener { |
|
|
|
|
|
|
|
|
private JTextArea textArea; |
|
|
private JTextArea textArea; |
|
@ -57,6 +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()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void loadNote() { |
|
|
private 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(); |
|
|