O'Reilly logo

Graphic Java™ 2, Volume II: Swing, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23. Customizing Text Components

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.

Overview

Like all Swing components, text components comprise a model (an implementation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required