Defines the requirements for an object that can be used as a
tree node in a JTree.
Implementations of TreeNode
that override equals
will typically need to override hashCode
as well. Refer
to TreeModel
for more information.
For further information and examples of using tree nodes,
see How to Use Tree Nodes
in The Java Tutorial.