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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.