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
474,005
Messages
2,570,264
Members
46,859
Latest member
HeidiAtkin

Latest Threads

Top