Java > Core SWING advanced programming > 3. TEXT COMPONENTS WITH CUSTOM VIEWS > Summary
Summary
In this chapter, you saw the element structure of the various Swing text components, from the simple JTextField and JTextArea to the more complex JTextPane and JEditorPane. The element structure organizes the underlying content into paragraphs and also delineates regions of the document that share exactly the same rendering attributes.
Corresponding to each element within the document are one or more View objects that are responsible for drawing the content of that element on the screen. You saw that different text components used different Views to obtain the rendering behavior that they require, including such features as tab expansion and line wrapping. We also showed you how to enhance text components by creating new highlighters and your own custom Views that present data in a way that is suitable for your application.