next up previous
Next: Practical Usage of Tress Up: Trees JTree Previous: Trees JTree

List v. Trees

Lists are good for displaying simple lists of information from which the user can make single or multiple selections.

A list is inadequate for more complex selections, for example:

A better solution to this problem is to implement a single control containing all of the lists:

Example of a Tree Structure

A hierarchical tree realises this structure:

The JTree class is the Swing component that provides these facilities.


next up previous
Next: Practical Usage of Tress Up: Trees JTree Previous: Trees JTree
Dave Marshall
4/14/1999