}
public void startExamplePanel()
{
ItsNatDocument itsNatDoc = getItsNatDocument();
ItsNatComponentManager compMgr = itsNatDoc.getItsNatComponentManager();
this.useSingleClickComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("useSingleClickId");
useSingleClickComp.getToggleButtonModel().addItemListener(this);
NameValue[] artifacts = new NameValue[]{new NameValue("treeTable","true")};
this.treeComp = (ItsNatFreeTree)compMgr.createItsNatComponentById("compId","freeTree",artifacts);
treeComp.setItsNatTreeCellRenderer(new TreeTableItemRenderer(itsNatDoc));
treeComp.setItsNatTreeCellEditor(new TreeTableItemEditor(treeComp.getItsNatTreeCellEditor()));
new FreeTreeDecorator(treeComp).bind();
DefaultTreeModel dataModel = (DefaultTreeModel)treeComp.getTreeModel();
TreeTableItem rootItem = new TreeTableItem("Grey's Anatomy","Famous TV series");
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(rootItem);
dataModel.setRoot(rootNode);
DefaultMutableTreeNode parentNode;
parentNode = addNode(new TreeTableItem("Characters","Actors"),rootNode);
addNode(new TreeTableItem("Meredith Grey","Ellen Pompeo"),parentNode);
addNode(new TreeTableItem("Cristina Yang","Sandra Oh"),parentNode);
addNode(new TreeTableItem("Alex Karev","Justin Chambers"),parentNode);
addNode(new TreeTableItem("George O'Malley","T.R. Knight"),parentNode);
parentNode = addNode(new TreeTableItem("Other","Category"),rootNode);
addNode(new TreeTableItem("Shonda Rhimes","Creator"),parentNode);
addNode(new TreeTableItem("USA","Country"),parentNode);
addNode(new TreeTableItem("English","Language"),parentNode);
TreeSelectionModel selModel = treeComp.getTreeSelectionModel();
selModel.setSelectionMode(TreeSelectionModel.CONTIGUOUS_TREE_SELECTION);
selModel.addSelectionPath(new TreePath(parentNode.getPath())); // Other
treeComp.addEventListener("click",this);
dataModel.addTreeModelListener(this);
selModel.addTreeSelectionListener(this);
this.removeButton = (ItsNatHTMLInputButton)compMgr.createItsNatComponentById("removeId");
removeButton.addEventListener("click",this);
DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)selModel.getSelectionPath().getLastPathComponent();
TreeTableItem selectedItem = (TreeTableItem)selectedNode.getUserObject();
this.itemPrincipalComp = (ItsNatHTMLInputText)compMgr.createItsNatComponentById("itemPrincipalId");
itemPrincipalComp.setText(selectedItem.getPrincipal());
this.itemSecondaryComp = (ItsNatHTMLInputText)compMgr.createItsNatComponentById("itemSecondaryId");
itemSecondaryComp.setText(selectedItem.getSecondary());
this.posComp = (ItsNatHTMLInputText)compMgr.createItsNatComponentById("posId");
posComp.setText(Integer.toString(selModel.getMinSelectionRow()));
this.updateButton = (ItsNatHTMLInputButton)compMgr.createItsNatComponentById("updateId");
updateButton.addEventListener("click",this);
this.insertBeforeButton = (ItsNatHTMLInputButton)compMgr.createItsNatComponentById("insertBeforeId");
insertBeforeButton.addEventListener("click",this);
this.insertAfterButton = (ItsNatHTMLInputButton)compMgr.createItsNatComponentById("insertAfterId");
insertAfterButton.addEventListener("click",this);
this.insertChildButton = (ItsNatHTMLInputButton)compMgr.createItsNatComponentById("insertChildId");
insertChildButton.addEventListener("click",this);
this.joystickModeComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponentById("joystickModeId");
joystickModeComp.getToggleButtonModel().addItemListener(this);
joystickModeComp.setSelected(isJoystickModePreferred());
}