Tree « Swing « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Swing » Tree 
1. Capture hierarchical structures with Swing's JTree
Author:Tomer Meshorer
URL:http://www.javaworld.com/javaworld/jw-10-1998/jw-10-jtree.html
Summary: Almost every toolkit and GUI library contains a tree component. The new JFC GUI library, Swing, follows this tradition by providing the JTree component. Looking "under the hood" of JTree we find lots of code, a few patterns, and quite a bit of functionality. Understanding this functionality and the patterns is essential to leveraging the component power to capture hierarchical objects structures. Like all Swing components, JTree is built around the Model-UI pattern -- a design in which each component is divided into a model part that holds the data and UI part that renders it. In this article, I'll explain JTree's model part and demonstrate how to use it for representing hierarchical objects structures. (3,500 words)


w_w___w.j_av_a_2___s._c_o___m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.