public void configure() { String type = (String) typeList.getSelectedItem(); if ("Control Change".equals(type)) { eventhandler.configureControlChange( getOperationMode(), this.type, (Integer) channel.getValue(), (Integer) cc.getValue(), (Integer) min.getValue(), (Integer) max.getValue()); } else if ("NRPN".equals(type)) { eventhandler.configureNRPN( getOperationMode(), this.type, (Integer) channel.getValue(), (Integer) cc.getValue(), (Integer) min.getValue(), (Integer) max.getValue()); } else if ("Pitch Bend".equals(type)) { eventhandler.configurePitchBend( getOperationMode(), this.type, (Integer) channel.getValue(), (Integer) min.getValue(), (Integer) max.getValue()); } else if ("Basenote".equals(type)) { eventhandler.configureBaseNoteChange( getOperationMode(), this.type, (Integer) min.getValue(), (Integer) max.getValue()); } else if ("Scale".equals(type)) { eventhandler.configureScaleChange(getOperationMode(), this.type); } else if ("Mode Change".equals(type)) { eventhandler.configureModeChange( getOperationMode(), this.type, (String) modeList.getSelectedItem()); } else if ("Unassigned".equals(type)) { eventhandler.configureUnassigned(getOperationMode(), this.type); } }