Abstract
This chapter presents an example of a Swing component that uses a complex data model. In this case we will examine the JTree Swing component, which requires a data model that represents the tree being displayed. The JTree component renders the tree data model; thus if the data model changes, the tree rendered by JTree also changes. To illustrate these ideas we will construct a simple application which displays all the classes inherited by a specified class.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
The Swing Connectionhttp://java.sun.com/products/jfc/tsc/index.html
The Java Tutorial: How to Use Trees: http://java.sun.com/dots/books/tutorial/uiswing/components/tree.html
The JFC Home Page:http://java.sun.com/products/jfc/index.html
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag London
About this chapter
Cite this chapter
Hunt, J. (2002). Swing Data Model Case Study. In: Java and Object Orientation: An Introduction. Springer, London. https://doi.org/10.1007/978-1-4471-0125-3_26
Download citation
DOI: https://doi.org/10.1007/978-1-4471-0125-3_26
Publisher Name: Springer, London
Print ISBN: 978-1-85233-569-4
Online ISBN: 978-1-4471-0125-3
eBook Packages: Springer Book Archive