Skip to main content

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics