public boolean isRowVisible(int row){
  if (row != -1) {
    Rectangle cellRect=getCellRect(row,0,false);
    Rectangle visibleRect=getVisibleRect();
    return visibleRect.intersects(cellRect);
  }
 else   return false;
}

public boolean isRowVisible ( int row ) { if ( row != - 1 ) { Rectangle cellRect = getCellRect ( row , 0 , false ) ; Rectangle visibleRect = getVisibleRect ( ) ; return visibleRect . intersects ( cellRect ) ; } else return false ; }
determines if the given row is visible .
