*/
/*@Override*/
public void saveData() {
boolean flag=false;
UserConfiguration uc=UserConfiguration.getInstance();
try {
this.midiOutIndex=midiOutBox.getSelectedIndex();
uc.putProperty(MIDI_OUT_DEVICE, midiOutIndex);
MidiDevice.Info outInfo=(MidiDevice.Info)midiOutBox.getSelectedItem();
this.metronomeIndex=metronomeOutBox.getSelectedIndex();
uc.putProperty(MIDI_METRONOME_DEVICE, metronomeIndex);
MidiDevice.Info metronomeInfo=null;
if (metronomeIndex>0) {
metronomeInfo=(MidiDevice.Info)metronomeOutBox.getSelectedItem();
}
this.keyInIndex=keyboardInBox.getSelectedIndex();
uc.putProperty(KEYBOARD_IN_DEVICE, keyInIndex);
MidiDevice.Info keyInfo=(MidiDevice.Info)keyboardInBox.getSelectedItem();
MidiDevice metroDev=null;
if (metronomeInfo!=null) {
metroDev=MidiSystem.getMidiDevice(metronomeInfo);
if (metroDev.getMaxReceivers()==0) {