private ArrayList rewriteJListToArrayList(JList list) {
		ArrayList newList = new ArrayList();
		for (int i = 0; i < list.getModel().getSize(); i++) {
			if (list.getModel().getElementAt(i) != null)
				newList.add(list.getModel().getElementAt(i));
		}
		return newList;
	}