I tried to use jTextPane1.setText("xxx xxxx xxx xxxxx xx xxx xxxx xxx etc..."); but JTextPane does not word wrap it at all showing all the text in one line only instead.
It would be interesting to support word wrap on jTextPane1 resized too...
So my question is...
how to make JTextPane support word wrap?