if (orientation == VERTICAL) return visibleRect.height * direction;
int block = -1; if (orientation == SwingConstants.VERTICAL) {   block = visibleRect.height; if (direction > 0) {    Point p = new Point(visibleRect.x, visibleRect.y + visibleRect.height - 1); int last = locationToIndex(p); if (last != -1) { Rectangle lastR = getCellBounds(last, last); if (lastR != null) { block = lastR.y - visibleRect.y; if (block == 0&& last < getModel().getSize() - 1) block = lastR.height; } } }
  public int getScrollableBlockIncrement(Rectangle visibleRect,                                         int orientation, int direction)  {      if (orientation == VERTICAL)	  return visibleRect.height * direction;      else	  return visibleRect.width * direction;  }