I have similar problem.
I am trying to read some text from .ini file and display it on JOptionPane confirm dialog. Here is the text in .ini file:
I supposed that each part of text will be placed in another line. But I was wrong. Whole string is in single line.
Surprisingly, I receive the same effect when I put string on stdout by System.out.println().
Here is the code:
Of course "sometext" appears in new line on console. How can I fix it?
Edit:
Ok I get it. I should use html.
http://docs.oracle.com/javase/tutorial/uiswing/components/html.html