Topics in this Chapter
Implementing a Custom Renderer
Calculating Column Widths
Multi-Line Header and Cell Rendering
Renderers and Tooltips
Table is one of the most important components in the Swing toolkit. With very little effort, you can use it to display rows of column-centric data to the user. However, sophisticated users expect more than the relatively simple presentation that you get from the default behavior of
JTable. In this chapter and the next, you'll see how to use the rendering and editing techniques provided by
JTable to change its behavior in several ways. Although these mechanisms are inherently very simple, they are also extremely flexible and, with a little ...