while (parent != null)
if (parent != null)
  protected void setExpandedState(TreePath path, boolean state)  {    if (path == null)      return;    TreePath parent = path.getParentPath();    try      {	while (parent != null)	  checkExpandParents(parent);      }    catch (ExpandVetoException e)      {	// Expansion vetoed.	return;      }    doExpandParents(path, state);  }