if (getFirstVisibleRowIndex() == -1)
if (getFirstVisibleRowIndex(table) == -1)
    int getLastVisibleRowIndex()    {      ComponentOrientation or = table.getComponentOrientation();      Rectangle r = table.getVisibleRect();      r.translate(0, (int) r.getHeight() - 1);      if (or.isLeftToRight())        r.translate((int) r.getWidth() - 1, 0);      // The next if makes sure that we don't return -1 simply because      // there is white space at the bottom of the table (ie, the display      // area is larger than the table)      if (table.rowAtPoint(r.getLocation()) == -1)        {          if (getFirstVisibleRowIndex() == -1)            return -1;          else            return table.getModel().getRowCount() - 1;        }      return table.rowAtPoint(r.getLocation());    }