Top Description Interfaces Classes
module java.desktop

Package javax.swing.text.rtf


Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors.

Note

Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.

Since
1.2

Interface Summary

Modifier and TypeInterface and Description
pack-priv interface
RTFAttribute

This interface describes a class which defines a 1-1 mapping between an RTF keyword and a SwingText attribute.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractFilter

A generic superclass for streams which read and parse text consisting of runs of characters interspersed with occasional ``specials'' (formatting characters).

pack-priv class
Constants

Class to hold dictionary keys used by the RTF reader/writer.

pack-priv class
pack-priv class
public class
RTFEditorKit

This is the default implementation of RTF editing functionality.

pack-priv class
RTFGenerator

Generates an RTF output stream (java.io.OutputStream) from rich text (handed off through a series of LTTextAcceptor calls).

pack-priv abstract class
RTFParser

RTFParser is a subclass of AbstractFilter which understands basic RTF syntax and passes a stream of control words, text, and begin/end group indications to its subclass.

pack-priv class
RTFReader

Takes a sequence of RTF tokens and text and appends the text described by the RTF to a StyledDocument (the target).