Swing text is built upon a complex infrastructure of classes and interfaces from the
javax.swing.text package. Everyday use of the Swing text components—discussed in the preceding two chapters—does not require an in-depth understanding of the Swing text package; however, customizing text components requires a basic grasp of the main classes and interfaces from
javax.swing.text package. This chapter offers examples of common customization tasks, such as coloring text, setting character and paragraph attributes, and implementing custom views.
Like all Swing components, text components comprise a model (an implementation ...