completeEditing();
    public void treeCollapsed(TreeExpansionEvent event)    {      validCachedPreferredSize = false;      treeState.setExpandedState(event.getPath(), false);      // The maximal cell height may change      maxHeight = 0;      tree.revalidate();      tree.repaint();    }