setComboBox(cbIn, PatchEdit.appConfig.getInitPortIn()); setComboBox(cbMC, PatchEdit.appConfig.getMasterController()); cbxEnMC.setSelected(PatchEdit.appConfig.getMasterInEnable()); setContainerEnabled(channelPanel,currentDriver.isReady());
setComboBox(cbIn,  PatchEdit.appConfig.getInitPortIn()); setComboBox(cbMC,  PatchEdit.appConfig.getMasterController()); setContainerEnabled(channelPanel, cbxEnMidi.isSelected() && currentDriver.isReady());
    private void resetPortComboBoxes() {	MidiWrapper currentDriver = appConfig.getMidiWrapper();	if (!PatchEdit.newMidiAPI) {	    cbOut.removeAllItems ();	    cbIn.removeAllItems ();	    cbMC.removeAllItems ();	    try {		for (int j=0; j< currentDriver.getNumOutputDevices ();j++)		    cbOut.addItem (j+": "+ currentDriver.getOutputDeviceName (j));		for (int j=0; j< currentDriver.getNumInputDevices ();j++)		    cbIn.addItem (j+": "+currentDriver.getInputDeviceName (j));		for (int j=0; j< currentDriver.getNumInputDevices ();j++)		    cbMC.addItem (j+": "+currentDriver.getInputDeviceName (j));	    } catch (Exception e) {		ErrorMsg.reportStatus(e);	    }	}	setComboBox(cbOut, PatchEdit.appConfig.getInitPortOut());	setComboBox(cbIn, PatchEdit.appConfig.getInitPortIn());	setComboBox(cbMC, PatchEdit.appConfig.getMasterController());	cbxEnMC.setSelected(PatchEdit.appConfig.getMasterInEnable());	setContainerEnabled(channelPanel,currentDriver.isReady());	// if cbMC is enabled/disabled depends from cbxEnMC	cbMC.setEnabled(cbxEnMC.isEnabled() && cbxEnMC.isSelected());    }