title: How to turn off JTextPane line wrapping?
body: <p>Unlike <code>JTextArea</code>, <code>JTextPane</code> has no option to turn line wrapping off. I found one <a href="http://java-sl.com/wrap.html" rel="noreferrer">solution</a> to turning off line wrapping in <code>JTextPane</code>s, but it seems too verbose for such a simple problem. Is there a better way to do this?</p>