code: public void setRows(int rows) {
  
          if (rows < 0) {
              throw new IllegalArgumentException(String.valueOf(rows));
          }
          getStateHelper().put(PropertyKeys.rows, rows);
  
      }
docs: <p>Set the number of rows to be displayed, or zero for all remaining rows
  in the table.</p>
  
  @param rows New number of rows
  
  @throws IllegalArgumentException if <code>rows</code> is negative