title: Toggling text wrap in a JTextpane
body: <p>How would I go about toggling text wrap on a <code>JTextpane</code>?</p>
  
  <pre><code>public JFrame mainjFrame = new JFrame("Text Editor");
      public JTextPane mainJTextPane = new JTextPane();
          public JScrollPane mainJScrollPane = new JScrollPane(mainJTextPane);
          mainjFrame.add(mainJScrollPane);
  </code></pre>