@Override
        @SuppressWarnings("unchecked")
        public void setModel(ListModel m) {
            originalModel = m;
            super.setModel(m);
        }
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