if (drumButton.isSelected()) {
tm=MidiThread.TEST_MODES.TEST_DRUMS;
} else if (chordButton.isSelected()) {
tm=MidiThread.TEST_MODES.TEST_CHORD;
}
MidiThread mt=MidiThread.getTestInstance(dev, chan,
tm, programCheck.isSelected()?programBox.getSelectedIndex():-1);
// nur ein Durchlauf
mt.setRunOnce(true);
mt.start();
}