midiPlatform=((JComboBox)e.getSource ()).getSelectedIndex ();
appConfig.setMidiPlatform(((JComboBox)e.getSource ()).getSelectedIndex ());
    protected JPanel makeCard2 ()    {        JPanel panel=new JPanel ();        panel.setLayout (new ColumnLayout ());        JLabel l2 = new JLabel ("MIDI Access Method:");        panel.add (l2);        cbPlatform=new JComboBox ();        cbPlatform.addItem ("MIDI Access Disabled.");        cbPlatform.addItem ("MS Windows (JavaMIDI)");        cbPlatform.addItem ("MS Windows (WireProvider)");        cbPlatform.addItem ("GNU/Linux  (/dev/*)");        cbPlatform.addItem ("MacOS X");        cbPlatform.addItemListener (new ItemListener ()        {            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 ());                }            }        }        );        panel.add (cbPlatform);                JLabel l0=new JLabel ("Run Startup Initialization on Midi Ports:");        panel.add (l0);        cb1 = new JComboBox ();        cb2 = new JComboBox ();        cb3 = new JComboBox ();        panel.add (cb1);        panel.add (cb2);                JLabel l1=new JLabel ("Receive from Master Controller on Midi Port:");        panel.add (l1);        panel.add (cb3);                setPortCombos (panel);        return panel;    }