What is the use of JTree ?
Jtree is a just like a tree which is used to disply the items in the form of the tree. A JTree object does not actually contain your data; it simply provides a view of the data. Each row displayed by the tree contains exactly one item of data, which is called a node. Every tree has a root node from which all nodes descend.