aspose file tools*
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 Java 8 in Action this week in the Java 8 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?
I agree. Here's the link:
subject: How to copy styled text
Similar Threads
Need to restrict ctrl+c, ctrl+v, ctrl+x
special chars generated during paste/copy
JTextComponent keyStroke
JMenuItems tricks for displaying short cut text
sun solaris , copy keyboard button