Java Reference
In-Depth Information
Summary
In this chapter, you learned about the many classes related to the use of the
JTree
compo-
nent. You looked at tree node rendering with the
TreeCellRenderer
interface and the
DefaultTreeCellRenderer
implementation. You delved into tree node editing with the
TreeCellEditor
interface, and the
DefaultCellEditor
and
DefaultTreeCellEditor
implementations.
After reviewing how to display and edit a tree, you dealt with the
TreeNode
interface,
MutableTreeNode
interface, and
DefaultMutableTreeNode
class for manually creating tree objects.
You explored the
TreeModel
interface and
DefaultTreeModel
implementation for storing the
data model of a tree, and the
TreeSelectionModel
interface and
DefaultTreeSelectionModel
implementation for storing the selection model for a tree.
In addition, you looked at the many event-related classes for the various tree classes, and
the
TreePath
for describing node connection paths.
In Chapter 18, you'll explore the
javax.swing.table
package and its many classes that can
be used with the
JTable
component.