Web and email hosting - Java Swing O Reilly Of course, you should

Java Swing O Reilly Of course, you should be sure to import javax.swing.event.* to get access to the TreeSelectionListener and TreeSelectionEvent classes. 17.1.1 Tree Terminology Let’s look at a simple tree made up of the letters A-Z, shown in Figure 17.3. Figure 17.3. A simple tree Here are a few definitions for terms used to work with trees. We’ll be using them throughout this chapter. Node Any entry in the tree. A, J, and T are all nodes. Root The top-level entry of the tree. A root cannot have a parent, and a tree can have only one root. The root in this example is A. Child Any of the nodes attached below a given node. M is a child of G. Parent The node attached above a given node. Any typical node has only one parent, but the root of the tree is the only node with no parent. G is the parent of M and C is the parent of G. Sibling Any child of a node’s parent. A node is also its own sibling. B’s siblings are B, C, and D. Descendant Any child, or child of a child, or child of a child of a child, etc. A node is also its own descendant. L, S, W, and X are the descendants of L. - 469 -
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Leave a Reply