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/paste to/from an HTMLDocument

JosAHNov 19 2007 — edited Nov 21 2007
Greetings,

see the topic title; when I copy/paste to from an HTMLDocument (using a JEditorPane),
the results are terrible. Copying and pasting does work in a way but all formatting is
lost. I decided to dig into the Clipboard class and its compadres and then I got
lost again in the documentation. Basically I want HTML test to be copied as
plain text and I want plain text to be pasted back in the document.

I can't believe it should be that complicated after I read the API docs so I sure must've
got lost in the documentation again. Can anyone please guide me in the right direction?

kind regards,

Jos
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2007
Added on Nov 19 2007
10 comments
282 views