public void addTreeModelListener(TreeModelListener l){
  treeModelListeners.addElement(l);
}

public void addTreeModelListener ( TreeModelListener l ) { treeModelListeners . addElement ( l ) ; }
adds a listener for the treemodelevent posted after the tree changes .
