public void setFixedRowsMode(int maxRows) {
    if (maxRows < 1) {
      throw new IllegalArgumentException("Should be greater than 0");
    }

    setModel(new FixedRowsModel(myModel, maxRows));
    getModel().fireTableStructureChanged();
  }
public void setFixedRowsMode(int maxRows)