public class MessageStore.ListModel extends AbstractListModel
AbstractListModel
. frame = new JFrame(); list = new JList(); list.setModel(myMessageStore.getListModel()); frame.getContentPane().add(list); frame.pack(); frame.setVisibiliy(true);Own specializations are inserted by ...
class myListModel extends MessageStore.ListModel {...} myMessageStore.setListModel(myMessageStore.new MyListModel()) ;
listenerList
Constructor and Description |
---|
ListModel() |
Modifier and Type | Method and Description |
---|---|
Object |
getElementAt(int pos) |
int |
getSize() |
void |
notifyAdd(int pos) |
void |
notifySortingChanged(int j) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public void notifyAdd(int pos)
public void notifySortingChanged(int j)
public int getSize()
public Object getElementAt(int pos)
see also the complete user documentation .