driver.clearMidiInBuffer();
MidiUtil.clearSysexInputQueue(driver.getInPort());
    public void actionPerformed (ActionEvent evt) {      Driver driver = (Driver) driverComboBox.getSelectedItem();      int bankNum  = bankNumComboBox.getSelectedIndex();      int patchNum = patchNumComboBox.getSelectedIndex();      inPort = driver.getInPort();      ErrorMsg.reportStatus("SysexGetDialog | port: " + inPort			    + " | bankNum: " + bankNum + " | patchNum: " + patchNum);      //----- Clear MidiIn buffer      MidiUtil.clearSysexInputQueue(inPort);      //----- Start timer and request dump      myLabel.setText("Getting sysex dump...");      // patchsize value is similiar to expected transmission time *3      timeOut=(long)driver.getPatchSize();      sysexSize = 0;      queue = new ArrayList();	// clear queue      driver.clearMidiInBuffer();      timer.start();      driver.requestPatchDump(bankNum, patchNum);    }