}
  public int rowAtPoint(Point point)  {    int y0 = getLocation().y;    int nrows = getRowCount();    Dimension gap = getIntercellSpacing();    int height = getRowHeight() + (gap == null ? 0 : gap.height);    int y = point.y;        for (int i = 0; i < nrows; ++i)      {        if (0 <= y && y < height)          return i;        y -= height;      }          return -1;  }