Compling and Executing Treeviewer Example:

Create an Empty project with the name TreeViewer. Add the files TreeView.java, TreeViewer.java, DOMTree.java, DefaultImages.java.

Compile the project. Now add simple.xml file to the TreeViewer directory.Execute the project.

The output is as follows