Chapter 33. The javax.swing.text.rtf PackageThis simple package defines an RTFEditorKit that enables the javax.swing.JEditorPane component to display and edit Rich Text Format (RTF) documents. Figure 33-1 shows the class hierarchy of this package. Figure 33-1. The javax.swing.text.rtf package
This EditorKit subclass provides support to a JEditorPane component for displaying and editing text stored in Microsoft's Rich Text Format (RTF). The getContentType() method returns "text/rtf". The read() and write() methods know how to translate between the RTF file format and the Element tree structure of a DefaultStyledDocument.
Hierarchy: Object-->EditorKit(Cloneable,Serializable)-->DefaultEditorKit-->StyledEditorKit-->RTFEditorKit Copyright © 2001 O'Reilly & Associates. All rights reserved. |
|