Java Utililty Methods JList Model

List of utility methods to do JList Model

Description

The list of methods to do JList Model are organized into topic(s).

Method

ListtoList(ListModel model)
to List
ArrayList list = new ArrayList(model.getSize());
for (int i = 0; i < model.getSize(); i++) {
    list.add(model.getElementAt(i));
return (list);
ListModeltoListModel(final List elements)
to List Model
return (new AbstractListModel() {
    public int getSize() {
        return (elements.size());
    public Object getElementAt(int index) {
        return (elements.get(index));
});
...