Microsoft HomeProductsSearchSupportShopWrite Usspacer.gif Microsoft Home
AFC Samples
 In this topic

*Description

*Sources

 

AFC Samples   PreviousAFC SamplesNext
    Previous AFC
Samples
Next

 


Java Class Hierarchy Tree Sample Applet

This applet shows how to do use AFC components to build a class hierarchy tree.

Description

The JTreeVue applet parses a tree.html file generated in the javadoc format and displays it as a hierarchical tree of classes. Tree nodes of classes that implement interfaces have an Implements menu button. This menu button, when pressed, displays a menu list of interfaces that the class implements. Selecting an item from this list causes that item to be selected in the interface list (located following the Object subtree). The menu list can also be brought up by pressing the TAB key when a node that has a menu button has the focus. Nodes of interfaces that extend other interfaces possess an Extends menu button that works the same way as the Implements menu button.

The currently selected class or interface is displayed in a status bar below the scroll viewer that contains the class hierarchy tree.

Sources

This sample consists of these sources:
JTreeVue.java
JTreeVuePanel.java
JTreeNode.java
JTreeNodeItem.java
JTreeNodeInfo.java
JTreeMenuBtn.java
JTreeConsts.java

Top