In Java Swing, the JTextPane
has word wrap when the text exceeds width, but it does NOT line break for when there's a very long non-space string.
How can I make a JTextPane
line break for a long non-space string?
Any ideas would be much appreciated, thanks.