File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes RTF Editor written in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "RTF Editor written in java" Watch "RTF Editor written in java" New topic

RTF Editor written in java

manish basotia
Ranch Hand

Joined: Jan 12, 2004
Posts: 47
I am searching for an Texteditor written in java using JDK1.3 .
Pleae Let me know the link, if any one has come in contact with such kind of editor. I want the source code too for Study purpose.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

JEditorPane supports RTF documents... basically all you'd have to do is create a JFrame, a JScrollPane, and a JEditorPane. Add the JEditorPane to the JScrollPane, add the JScrollPane to the JFrame, and call setPage() on the JEditorPane with a RTF file. This would be a really simple RTF editor.

I've heard that there are some problems with the default RTFEditorKit that JEditorPane uses, but it all depends on how complex you need your RTF editor to be...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: RTF Editor written in java
It's not a secret anymore!