int row = -1; Object cell = null; if (path != null) { row = getRowForPath(tree, path); cell = path.getLastPathComponent(); } return nodeDimensions.getNodeDimensions(cell, row, getLevel(cell), tree.isExpanded(path), new Rectangle());
return treeState.getBounds(path, new Rectangle());
  public Rectangle getPathBounds(JTree tree, TreePath path)  {    int row = -1;    Object cell = null;    if (path != null)      {        row = getRowForPath(tree, path);        cell = path.getLastPathComponent();      }    return nodeDimensions.getNodeDimensions(cell, row, getLevel(cell),                                            tree.isExpanded(path),                                            new Rectangle());  }