Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Copy selected text and components in JTextPane

843804Mar 9 2005 — edited Mar 9 2005
Hi all,

I have a JTextPane with styled text and JLabel inside. I would like to copy selected text and labels. The default copy function of JTextPane just can copy text. If overriding method copy of JTextPane is the only choice, how can I put selected data to clipboard? Pls help me with this.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2005
Added on Mar 9 2005
1 comment
155 views