Insert RTF text

C

Click

Hello all,

I have a JEditorPane that display a RTF text. I would like to insert another
RTF text, from the disc, in the middle of the first one. So, looking on how
to do it, I have found the EditorKit.read() method. But this method asks for
a Document object, and I do not know how to get one from the JEditorPane.

Is EditorKit.read the correct method to use? If yes, then how can I get a
document object?

Thanks in advance, Francois
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top