title: How can I copy/paste styled text from/to clipboard?
body: <p>I have I <code>JTextPane</code> and I'm using <code>DefaultStyledDocument</code> as a text model. I currenly use the <code>JTextPane</code>'s default <code>copy()</code> and <code>paste()</code> methods for copying and pasting, but as you know they copy/paste plain text only. I need to be able to copy styled text from a browser for example, and paste it in the <code>JTextPane</code> preserving the styles. </p>
  
  <p>Does anyone know how I can achieve this?</p>