aquastar (05.10.2012)
Thema: jTextArea in .txt speichern
-
05.10.2012, 17:20 #11
AW: jTextArea in .txt speichern
Hier ein Screenshot:
Direktlink: https://u-img.net/img/6459Pk.png
Naja, mit null ging es auch, es ging vorhin alles nur wurde alles in einer Zeile gespeichert.Geändert von U-Labs (24.06.2024 um 15:57 Uhr) Grund: Abload.de Bilder wegen geplanter Abschaltung auf U-IMG übertragen
-
05.10.2012, 17:31 #12
AW: jTextArea in .txt speichern
Ändere mal über all System.getProperty("line.seperator") zu "/n"
while( behappy() ) { code(); }
-
The Following User Says Thank You to uncopyable For This Useful Post:
-
05.10.2012, 17:32 #13
AW: jTextArea in .txt speichern
Ok, nun geht es zwar, was ich persönlich nicht verstehe, aber dennoch wird der Text in einer Reihe ausgegeben. Ich öffne den Text mit dem normalen Editor.
-
05.10.2012, 17:38 #14
AW: jTextArea in .txt speichern
Also bei mir funktioniert es auch mit dem Windows Notepad, öffne es mal mit Wordpad oder Notepad++ dort sollte es funktionieren
while( behappy() ) { code(); }
-
05.10.2012, 17:41 #15
AW: jTextArea in .txt speichern
Ok, mit dem Wordpad funktioniert es bei mir auch. Aber gibt es eine Lösung, sodass es auch im normalen Editor richtig angezeigt wird?
-
05.10.2012, 20:06 #16
- Registriert seit
- 15.11.2011
- Beiträge
- 8.015
- Blog Entries
- 5
Thanked 9.387 Times in 3.225 PostsAW: jTextArea in .txt speichern
Unter Linux/Unix steht \n für einen Zeilenumbruch, unter Windows \r\n.
Das hier mit unterschiedlichen Editoren unterschiedliche Ergebnisse herauskommen liegt daran, dass die Editoren das wohl unterschiedlich interprätieren.
-
The Following 2 Users Say Thank You to DMW007 For This Useful Post:
Gangstersheep (05.10.2012), Snees (05.10.2012)
-
05.10.2012, 21:29 #17
- Registriert seit
- 19.11.2011
- Beiträge
- 496
Thanked 412 Times in 268 PostsAW: jTextArea in .txt speichern
API-Referenz
The parent argument determines two things: the frame on which the open dialog depends and the component whose position the look and feel should consider when placing the dialog. If the parent is a Frame object (such as a JFrame) then the dialog depends on the frame and the look and feel positions the dialog relative to the frame (for example, centered over the frame). If the parent is a component, then the dialog depends on the frame containing the component, and is positioned relative to the component (for example, centered over the component). If the parent is null, then the dialog depends on no visible window, and it's placed in a look-and-feel-dependent position such as the center of the screen.Geändert von Mr. White (05.10.2012 um 21:31 Uhr) Grund: Zitat nicht richtig
Ähnliche Themen
-
Online texte speichern für immer?
Von ElkosMED im Forum WebmasterAntworten: 2Letzter Beitrag: 01.03.2014, 22:31 -
VB.Net Fortschritt speichern?
Von x BoooM x im Forum .NetAntworten: 4Letzter Beitrag: 10.03.2013, 16:57 -
C# Logindaten speichern
Von Saad im Forum .NetAntworten: 12Letzter Beitrag: 26.10.2012, 15:20 -
VB.Net Seitenquelltext in in Textdatei speichern
Von rVs14 im Forum .NetAntworten: 5Letzter Beitrag: 03.04.2012, 13:17
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.