public ArrayList getClassesAffected() {
        ArrayList theList = new ArrayList();
        int[] selected = classList.getSelectedIndices();
        for (int i = 0; i < selected.length; ++i) {
            String item = (String) classList.getModel().getElementAt(i);
            theList.add(item);
        }
        return (theList);
    }