has anyone successfully wrote from a .rtf file to a RichTestItem?
I know how to get the plaintext from a rtf file by using RTFEditorKit
RTFEditorKit kit = new RTFEditorKit();
javax.swing.text.Document doc = kit.createDefaultDocument();
kit.read(fin, doc, 0);
String plainText = doc.getText(0, doc.getLength());
and then just use RTItem.appendText(plainText);
But how do I create the RichTextItem from the RTF file with all the format and Style?
any ideas?
Many thanks in adv
Xun