Originally posted by sunilkumarbit choudhary:
How can i read RTF file from java
Keep in mind that RTF is not really a standard. Microsoft documents it poorly and amends it whenever it sees fit. That said, reading an RTF file can be as easy as:
JEditorPane jep = new JEditorPane("
application/rtf", "");
jep.
read(new FileInputStream("path/to/file.rtf"), null);
yourContainer.add(new JScrollPane(jep));
I hope this is helpful.