The Default List Model
The class DefaultListModel object generally behaves like (a slightly out of date) java.util.Vector object.
You can, for example, create a DefaultListModel, add initial list elements to this object as if it was a Vector, then create a JList component containing this model.
The most important special property of a DefaultListModel is that it will automatically generate events to update the JList display, whenever the model’s contents are changed.