Summary
In this chapter, you learned about the many classes related to the use of the JTree component. 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 John Zukowski
About this chapter
Cite this chapter
(2005). Trees. In: The Definitive Guide to Java Swing. Apress. https://doi.org/10.1007/978-1-4302-0033-8_17
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0033-8_17
Publisher Name: Apress
Print ISBN: 978-1-59059-447-6
Online ISBN: 978-1-4302-0033-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)