DataModelArray.setNColumns

void setNColumns(int cols)

Sets the number of columns for rows inserted in this model. cols must be greated than or equal to 0.

Also clears model's contents.

Parameters

colsnumber of columns for rows this data model should use.