O'Reilly logo

Core SWING advanced programming by KIM TOPLEY

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 3. TEXT COMPONENTS WITH CUSTOM VIEWS

Topics in this Chapter

  • The Element Hierarchy

  • Document Views

  • View Factories

  • Tab Handling

  • Creating Customized Views

  • Custom Highlighters

  • Using Customized Views to Build Clever Input Fields

In the first two chapters of this book, you've seen how the document content is stored in the model associated with a text component and how it is possible to store attributes that determine how the text is rendered on the screen. In this chapter, you'll see that the attributes that were discussed in Chapter 2, which exist at both the character and paragraph level, are actually stored in a hierarchy of "elements" that map out the various structures within the document. Once we've described the element structure, we'll move on ...

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