How to Construct a Model?
Swing provides a following hierarchy:
- ListModel (interface, defines data access methods)
- AbstractListModel (abstract class, handles connections and notifications to the view )
- DefaultListModel (implements data store using Vector; this class is ready to use)