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 ...

Get Core SWING advanced programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.