maxHeight = 0;
    public void treeExpanded(TreeExpansionEvent event)    {      validCachedPreferredSize = false;      treeState.setExpandedState(event.getPath(), true);      tree.revalidate();      tree.repaint();    }