List of utility methods to do JList Model
List | toList(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); |
ListModel | toListModel(final List elements) to List Model return (new AbstractListModel() { public int getSize() { return (elements.size()); public Object getElementAt(int index) { return (elements.get(index)); }); ... |