This question already has an answer here:
- JTextPane does not go to a new line? 3 answers
In Java Swing, The JTextPane
do have word wrap when text exceeded width, but it does NOT line break for if there was a very long non-space string
How can I making line break for long non-space string
in JTextPane
?
Any ideas would be much appreciated, thanks.