299300301302303304305306307308309
while (iterator.hasNext()) { midiSelector.addItem(iterator.next()); } mt = new MidiTransmitter(); mr = new MidiReceiver(); pianoKeys.setMidiReceiver(mr); pianoKeys.setMidiTransmitter(mt);