public void setSelectionModel (ListSelectionModel selectionModel)

Sets the selectionModel for the list to a non-null ListSelectionModel implementation. The selection model handles the task of making single selections, selections of contiguous ranges, and non-contiguous selections.

This is a JavaBeans bound property.

selectionModel    the ListSelectionModel that implements the selections

IllegalArgumentException    if selectionModel is null

See also:

@beaninfo bound: true description: The selection model, recording which cells are selected.