Chapter 22. Styled Text Panes


In this chapter we'll discuss Swing's most powerful text component, JTextPane, as well as the Document model and the many classes and interfaces that go along with it. All text components use the Document interface to interact with their models. JTextPane uses the StyledDocument interface, an extension of the Document interface with style-manipulation methods.

This is a long chapter because there are so many classes and interfaces used by Document and its ilk. You may have no immediate need to learn about some of these classes, especially those in the latter half of the chapter. Don't feel that you must read the chapter straight through.



Java Swing
Graphic Java 2: Mastering the Jfc, By Geary, 3Rd Edition, Volume 2: Swing
ISBN: 0130796670
EAN: 2147483647
Year: 2001
Pages: 289
Authors: David Geary

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net