public void removeListDataListener(ListDataListener l) {
listeners.remove(l);
}
public void modelChanged(ModelChangeEvent e) {
ListChangeEvent lce = (ListChangeEvent) e;
ListDataEvent event =
new ListDataEvent(e.getSource(), lce.getType(), lce.getFirstIndex(), lce.getLastIndex());
for (int i = 0; i < listeners.size(); i++) {
((ListDataListener) listeners.get(i)).contentsChanged(event);
}
}