cb1.setSelectedIndex (initPortOut); cb2.setSelectedIndex (initPortIn); cb3.setSelectedIndex (masterController); cb4.setSelectedIndex (faderPort); cb5.setSelectedIndex (lookAndFeel);
cb4.removeAllItems (); for (int j=0; j< PatchEdit.MidiIn.getNumInputDevices ();j++) cb4.addItem (j+": "+PatchEdit.MidiIn.getInputDeviceName (j)); cb5.removeAllItems (); for (int j=0; j< installedLF.length;j++) cb5.addItem (installedLF[j].getName ()); cb1.setSelectedIndex (appConfig.getInitPortOut()); cb2.setSelectedIndex (appConfig.getInitPortIn()); cb3.setSelectedIndex (appConfig.getMasterController()); cb4.setSelectedIndex (appConfig.getFaderPort()); cb5.setSelectedIndex (appConfig.getLookAndFeel());
    public void setPortCombos (JPanel panel)    {        try        {            cb1.removeAllItems ();            for (int j=0; j< PatchEdit.MidiOut.getNumOutputDevices ();j++)                cb1.addItem (j+": "+PatchEdit.MidiOut.getOutputDeviceName (j));            cb2.removeAllItems ();            for (int j=0; j< PatchEdit.MidiIn.getNumInputDevices ();j++)                cb2.addItem (j+": "+PatchEdit.MidiIn.getInputDeviceName (j));            cb3.removeAllItems ();            for (int j=0; j< PatchEdit.MidiIn.getNumInputDevices ();j++)                cb3.addItem (j+": "+PatchEdit.MidiOut.getInputDeviceName (j));            cb1.setSelectedIndex (initPortOut);            cb2.setSelectedIndex (initPortIn);            cb3.setSelectedIndex (masterController);            cb4.setSelectedIndex (faderPort);            cb5.setSelectedIndex (lookAndFeel);        } catch (Exception e)        {ErrorMsg.reportStatus (e);}            }