This section shows you Table Tree.
SWT provides the class TableTree to display the hierarchy of items in a tabular form. In the given example, we have defined three columns for the table tree. The method getTable() of class TableTree returns the underlying table control . The method table.setHeaderVisible(true) makes the header visible. The class TableColumn creates the columns in the TableTree. The class TableTreeItem adds the items to the TableTree.
Here is the code of TableTreeExample.java
import org.eclipse.swt.SWT;
|
Output will be displayed as:

|
Recommend the tutorial |
Ask Questions? Discuss: Demonstrates TableTree
Post your Comment