Browse Source

refactoring: noteTextappendKommi

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

2
src/main/java/Notizbuch.java

@ -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) {

Loading…
Cancel
Save