tree : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

tree
A tree is a data structure shaped, surprise, like a tree, with branches fanning fanning out from a root, into branches between nodes ending in leafs. They are a special type of directed graph, with each child having exactly one parent, except the root. Java does not have a Tree collection, but it has a number of classes for handling trees.
Tree Handling Classes
Class Purpose
JTree Swing GUI (Graphic User Interface) component used to display and edit tree structure.
DefaultTreeModel Used to hold the data model for a JTree, but could also be used independently.
TreeMap An ordered Map that uses a tree structure internally to keep keys of a Map lookup in order. However, despite its name, it is not suitable for holding tree structure data.
TreeSet An ordered Set that uses a tree structure internally to keep elements of the Set in order. However, despite its name, it is not suitable for holding tree structure data.

This page is posted
on the web at:

http://mindprod.com/jgloss/tree.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\tree.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[54.205.0.26]
You are visitor number