title: copy jTextPane text to clipboard
body: <p>I have a form which contains a <code>jTextPane</code> and a <code>jButton</code>, I've set the <code>jTextPane</code> <code>Accessible Description</code> to <code>text/html</code>, now I want when I click on the <code>jButton</code> to copy the content of the <code>jTextPane</code> to my clipboard, I tried this code :</p>
  
  <pre><code> private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                         
          StringSelection stringSelection = new StringSelection (jTextPane1.getText());
          Clipboard clpbrd = Toolkit.getDefaultToolkit ().getSystemClipboard ();
          clpbrd.setContents (stringSelection, null);
      } 
  </code></pre>
  
  <p>but when I past, it past the text as an HTML format.</p>
  
  <p>How can I solve this probelm ?</p>