| Java >
Guidelines Home Page > Java Look and Feel Design Guidelines >
Part III: The Components of the Java Foundation Classes > 11: Text Components >
An editor pane is a multiline text pane that uses a plug-in editor kit to display a specific type of text, such as RTF (rich text format) or HTML (Hypertext Markup Language). An editor kit is capable of displaying all fonts included with the AWT. The JFC provides four kits that you can plug into an editor pane:
You can also create your own editor kit or use a third-party editor kit. For an example of how to create an editor kit, see Java Swing, described in Java.
setEditable method can be used to turn text editing on or off in an editor kit.
You can use a styled text editor kit to edit and display multiple fonts, sizes, and styles, as shown in Figure 181.
Click here to view the corresponding code for Figure 181 (also available on the book's companion CD-ROM).Figure 181 Styled Text Editor Kit
Figure 182 RTF Editor Kit
Figure 183 HTML Editor Kit
|Java Look and Feel Design Guidelines, second edition.
Copyright 2001. Sun Microsystems, Inc. All Rights Reserved.