Browse Source

refactoring: LoadNoteKommi

remotes/origin/hotfix/client/improve-chat-window-appearence
Marc Dimmerling 11 months ago
parent
commit
07c6a6ae75
  1. 2
      src/main/java/Notizbuch.java

2
src/main/java/Notizbuch.java

@ -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();

Loading…
Cancel
Save