Cool thx that worked, bt when i make a couple of lines beneath one another in the jtextfield, it saves all the text next to each other and the new liner have a funny symbol
The JTextArea is fairly simple in its formatting. It will break text for display on word boundaries, but it does not embed CR/LF characters into the text.
So on extracting the text, you get exactly what had been initially written in.
If you want line formatting from a JTextArea object, you'll have to do it yourself somehow.