midiPlatform=((JComboBox)e.getSource ()).getSelectedIndex ();
appConfig.setMidiPlatform(((JComboBox)e.getSource ()).getSelectedIndex ());
            public void itemStateChanged (ItemEvent e)            {                if (e.getStateChange ()==e.SELECTED)                {                    ((PatchEdit)p).unloadMidiDriver ();                    midiPlatform=((JComboBox)e.getSource ()).getSelectedIndex ();                    //System.out.println("MakeCard2:stateChanged to "+midiPlatform);                                    ((PatchEdit)p).loadMidiDriver ();                    setPortCombos ((JPanel)((JComboBox)e.getSource ()).getParent ());                }            }