What is DefaultListModel
in Java? and What is its purpose?
I tried to google it but didn't get any proper explanation for it!
DefaultListModel
is a implementation of the ListModel
that extends from AbstractListModel
.
Internally, it is backed by List
implementation.
It's intention is to provide a simple implementation of the ListModel
that you can use for modelling simple data models where having to extend from the AbstractListModel
or implement the ListModel
interface would be overkill for accomplishing the same task