17.8 What Next?


With this control over the look of a tree and its contents, you can create some impressive interfaces for a wide variety of data and your own network management software that lets you browse domains and subdomains and computers and users. Any hierarchy of information you can think of can be shown graphically.

It is worth pointing out, however, that you are not restricted to graphical applications with these models. You can use DefaultTreeModel to store regular, hierarchical data, even if you have no intention of displaying the data on a screen. The model is flexible and provides a good starting point if you don't have any tree data structures of your own lying around.



Java Swing
Graphic Java 2: Mastering the Jfc, By Geary, 3Rd Edition, Volume 2: Swing
ISBN: 0130796670
EAN: 2147483647
Year: 2001
Pages: 289
Authors: David Geary

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net