Chapter 15. Advanced Swing
Topics in This Chapter
Using custom data models and renderers
Adding and removing choices from a JList
Displaying custom components in a JList
Creating dynamic JTree displays
Customizing icons in a JTree display
Creating a scrollable JTable
Editing cells in a JTable
Printing Swing components
Updating Swing components in a thread-safe manner
In this chapter, we focus on three advanced components available in Swing for building robust graphical user interfaces: JList, JTree, and JTable. A Swing list is similar to the familiar AWT List (Section 13.18, “List Boxes”); however, instead of just displaying a list of strings, a JList can also display icons. The JTree and JTable have no counterpart in the AWT package. A JTree displays ...
Get Core Web Programming, Second Edition 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.