Browse Source

Zeilensortierung

remotes/origin/server
Marc Dimmerling 11 months ago
parent
commit
ad1a16fe26
  1. 9
      src/main/java/Notizbuch.java

9
src/main/java/Notizbuch.java

@ -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();
@ -69,4 +64,4 @@ public class Notizbuch extends JFrame implements ActionListener {
JOptionPane.showMessageDialog(this, "Fehler beim Laden der Notiz: " + e.getMessage()); JOptionPane.showMessageDialog(this, "Fehler beim Laden der Notiz: " + e.getMessage());
} }
} }
}
}
Loading…
Cancel
Save