public void ensureRowVisible(int row){
  if (row != -1) {
    Rectangle cellRect=getCellRect(row,0,false);
    Rectangle visibleRect=getVisibleRect();
    if (!visibleRect.intersects(cellRect))     scrollRectToVisible(cellRect);
  }
}

public void ensureRowVisible ( int row ) { if ( row != - 1 ) { Rectangle cellRect = getCellRect ( row , 0 , false ) ; Rectangle visibleRect = getVisibleRect ( ) ; if ( ! visibleRect . intersects ( cellRect ) ) scrollRectToVisible ( cellRect ) ; } }
ensures the given row is visible .
