tree.insert(new DefaultMutableTreeNode(new Node("Movies", "movies")), 0);
DefaultMutableTreeNode music = new DefaultMutableTreeNode(
new Node("Music", "music"));
tree.insert(music, 0);
tree.insert(new DefaultMutableTreeNode(new Node("Games", "games")), 0);
MutableTreeNode temp = new DefaultMutableTreeNode(
new Node("Science", "science"));
temp.insert(
new DefaultMutableTreeNode(new Node("Geography", "geography")), 0);
temp.insert(
new DefaultMutableTreeNode(new Node("Mathematics", "math")), 0);
DefaultMutableTreeNode temp2 = new DefaultMutableTreeNode(
new Node("Astronomy", "astro"));
temp2.insert(new DefaultMutableTreeNode(new Node("Education", "edu")), 0);
temp2.insert(new DefaultMutableTreeNode(new Node("Pictures", "pic")), 0);
temp.insert(temp2, 2);
tree.insert(temp, 2);
treeState = new TreeState();
treeState.addExpandState(tree);
treeState.addSelection(temp2);
treeState.setMarker(music);