code: public void setRows(int rows)
      {
          if (rows < 0)
          {
              throw new IllegalArgumentException("rows: " + rows);
          }
          getStateHelper().put(PropertyKeys.rows, rows ); 
      }
docs: Set the maximum number of rows displayed in the table.