wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to copy styled text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to copy styled text" Watch "How to copy styled text" New topic

How to copy styled text

Steli Niculescu

Joined: Jul 14, 2009
Posts: 14
I'm making a text editor using JTextPane and i noticed that ctrl + c and ctrl + v use only plain text, ignoring styles.
How can i copy text, including its styles?
It is sorta covered in the JavaRanch Style Guide.
subject: How to copy styled text
Similar Threads
sun solaris , copy keyboard button
special chars generated during paste/copy
JTextComponent keyStroke
Need to restrict ctrl+c, ctrl+v, ctrl+x
JMenuItems tricks for displaying short cut text