Represent the model by an instance of ListModel. (Eg a DefaultListModel or an AbstractListModel) As the JList documentation states:

"A ListModel can be supplied directly to a JList by way of a...