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

    setModel(new FixedColumnsModel(myModel, maxColumns));
    getModel().fireTableStructureChanged();
  }
public void setFixedColumnsMode(int maxColumns)