Java tutorial
//package com.java2s; import java.util.ArrayList; import javax.swing.ListModel; public class Main { public static ArrayList listModelToList(ListModel listmodel) { ArrayList togo = new ArrayList(); for (int i = 0; i < listmodel.getSize(); ++i) { togo.add(listmodel.getElementAt(i)); } return togo; } }