From: Ranjith on
Hello,
Can anybody say me how to use RTFEditorKit to make a
word document and change the font of that texts writing to it
From: Roedy Green on
On Sat, 9 Jan 2010 18:03:09 -0800 (PST), Ranjith
<ranjithpmathew(a)gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Hello,
> Can anybody say me how to use RTFEditorKit to make a
>word document and change the font of that texts writing to it

the trick is you create a Document, then hook it up with setDocument,
and do your edits on the Document.

Start with http://mindprod.com/jgloss/jtextpane.html, and play around
generating some HTML. Once you get the general hang of it, flip over
to RTF.
--
Roedy Green Canadian Mind Products
http://mindprod.com
There is no end to what can be accomplished if you don�t care who gets the credit.
~ Art Rennison