|
@ -57,7 +57,7 @@ public class Notizbuch extends JFrame implements ActionListener { |
|
|
StringBuilder noteText = new StringBuilder(); |
|
|
StringBuilder noteText = new StringBuilder(); |
|
|
String line; |
|
|
String line; |
|
|
while ((line = reader.readLine()) != null) { |
|
|
while ((line = reader.readLine()) != null) { |
|
|
noteText.append(line).append("\n"); |
|
|
|
|
|
|
|
|
noteText.append(line).append("\n"); // Zeilen aus der Datei lesen und StringBuilder hinzufügen |
|
|
} |
|
|
} |
|
|
getTextArea().setText(noteText.toString()); |
|
|
getTextArea().setText(noteText.toString()); |
|
|
} catch (IOException e) { |
|
|
} catch (IOException e) { |
|
|