appConfig.getDevice(i).setPort(out); appConfig.getDevice(i).setInPort(in);
AppConfig.getDevice(i).setPort(out); AppConfig.getDevice(i).setInPort(in);
    void commitSettings() {	if (cbxEnMidi.isSelected()) {	    appConfig.setMidiEnable(true);	    appConfig.setMasterController(cbMC.getSelectedIndex());	    appConfig.setMasterInEnable(cbxEnMC.isSelected());	    int out = cbOut.getSelectedIndex();	    int in  = cbIn.getSelectedIndex();	    appConfig.setInitPortOut(out);	    appConfig.setInitPortIn(in);	    if (!appConfig.getMultiMIDI()) {		// change MIDI ports of all Devices		for (int i = 0; i < appConfig.deviceCount(); i++) {		    appConfig.getDevice(i).setPort(out);		    appConfig.getDevice(i).setInPort(in);		}	    }	} else {	    appConfig.setMidiEnable(false);	}	setModified(false);    }