int row = Math.round(y / getRowHeight());
int row = Math.round(y / getMaxHeight(tree));
  public TreePath getClosestPathForLocation(JTree tree, int x, int y)  {    int row = Math.round(y / getRowHeight());    TreePath path = getPathForRow(tree, row);    // no row is visible at this node    while (row > 0 && path == null)      {        --row;        path = getPathForRow(tree, row);      }    return path;  }