take a look at the documents: 1.4.2 | Java 6
You can set your own ListModel via JList # setModel (ListModel), which can be backed up, for example, by HashSet instead of Vector, which is used by default.
See also ListModel and AbstractListModel
source
share