*/
    public void commitSettings() {	appConfig.setMidiEnable(cbxEnMidi.isSelected());	if (!cbxEnMidi.isSelected())	    return;	if (!PatchEdit.newMidiAPI)	    appConfig.setMidiPlatform(cbDriver.getSelectedIndex());	int midiIn = cbIn.getSelectedIndex();	int midiOut = cbOut.getSelectedIndex();	int masterIn = cbMC.getSelectedIndex();	appConfig.setInitPortIn(midiIn);	appConfig.setInitPortOut(midiOut);	appConfig.setMasterController(masterIn);	appConfig.setMasterInEnable(cbxEnMC.isSelected());	if (!PatchEdit.newMidiAPI) {	    // Notify all listeners	    for(int i = 0; i < driverChangeListeners.size(); i++) {		((MidiDriverChangeListener) driverChangeListeners.elementAt(i)).midiDriverChanged(AppConfig.getMidiWrapper());	    }	    resetPortComboBoxes();	    repackContainer();	}    }