// Create a data structure to store the name of the node and the connected object
hashtableObjects = new Hashtable();
hashtableObjects.put( "[" + stringTreeNodeName + "]", a );
// activate simple selection mechanism
TreeSelectionModel tsm = new DefaultTreeSelectionModel();
tsm.setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
// Create a tree to show the object dependencies
tree = new JTree( treeModel );
tree.setSelectionModel(tsm);
tree.setRootVisible(true);