[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] RTF parser
On Tue, 17 Jul 2001 21:27, you wrote:
> Sir,
> Can you suggest where can I get the source code ( writen in java) to
> parse .rtf file ?
>
> regards
> Subrata
The javax.swing.JEditorPane supports text/rtf
(http://java.sun.com/j2se/1.3/docs/api/javax/swing/JEditorPane.html). From
that page:
This component uses implementations of the EditorKit to accomplish its
behavior. It effectively morphs into the proper kind of text editor for the
kind of content it is given.
The javax.swing.text.rtf.RTFEditorKit does the work
(http://java.sun.com/j2se/1.3/docs/api/javax/swing/text/rtf/RTFEditorKit.html).
That page says:
This is the default implementation of RTF editing functionality. The RTF
support was not written by the Swing team. In the future we hope to improve
the support provided.
So, if you download the java source, you'll find it there. This might not be
suitable depending on -why- you want the source code though.. :-)
If you can't find a copy of the source code, I can pass it on... (I wonder if
that breaks the license agreement..)
Regards,
--
Greg Kopff
===================================================
gkopff@nospam.powersource.com.au PowerSource Software
Technical Director http://www.powersource.com.au
===================================================
Gentlemen! You can't fight in here, this is the
War Room! - President Merkin Muffley
===================================================
JetStream Dynamic Content Engine(TM)
a dynamic & adaptive content accelerator
http://www.powersource.com.au/jetstream/
===================================================
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.