@Override
                    public void valueChanged(ListSelectionEvent e) {
                        selectedClass = list.getSelectedValuesList();
                    }
Code to create components and action listeners.

@param classes
           what Classes to show in the list box
jme3-examples/src/main/java/jme3test/TestChooser.java