title: Enabling word wrap in a JTextPane with HTMLDocument
body: <p>Everywhere I read answers of people finding ways of <em>enabling</em> word wrapping in a <code>JTextPane</code>, but none of them work for me. I'm using an <code>HTMLDocument</code> (to display <code>"text/html"</code> content) and nothing that I have found so far got it to work. The <code>JTextPane</code>  always cause the JScrollPane to scroll horizontally. I need the JTextPane to be scrollable, but <strong>only</strong> vertically.</p>
  
  <p>Would anyone have a workable demo of a word wrapping <code>JTextPane</code> displaying HTML content?</p>