updateCurrentVisiblePath(); tree.revalidate();
    public void treeNodesChanged(TreeModelEvent e)    {      validCachedPreferredSize = false;      updateCurrentVisiblePath();      tree.revalidate();      tree.repaint();    }