driver = (Driver)driverComboBox.getSelectedItem();
device   = (Device)deviceComboBox.getSelectedItem(); driver   = (Driver)device.getDriver(driverComboBox.getSelectedIndex());
    public void actionPerformed (ActionEvent evt) {      driver = (Driver)driverComboBox.getSelectedItem();      bankNum = bankComboBox.getSelectedIndex();      patchNum = patchNumComboBox.getSelectedIndex();//      ErrorMsg.reportStatus("");//      ErrorMsg.reportStatus("SysexGetDialog | port: " + driver.inPort + " | bankNum: " + bankNum + " | patchNum: " + patchNum);      //----- Clear MidiIn buffer      try {        while (PatchEdit.MidiIn.messagesWaiting(driver.inPort) > 0)          PatchEdit.MidiIn.readMessage(driver.inPort, buffer, 1024);      } catch (Exception ex) {        ErrorMsg.reportError("Error", "Error Clearing Midi In buffer.",ex);      }      //----- Start timer and request dump      myLabel.setText("Getting sysex dump...");      sysexSize = 0;      timer.start();      driver.requestPatchDump(bankNum, patchNum);    }