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.

Parameters:
selectionModel    the ListSelectionModel that implements the selections

Exceptions:
IllegalArgumentException    if selectionModel is null

See also:
getSelectionModel

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