p.deviceNum=deviceComboBox.getSelectedIndex(); p.driverNum=driverComboBox.getSelectedIndex();
  protected void pasteIntoSelectedFrame() {// ErrorMsg.reportStatus("SysexGetDialog->pasteIntoSelectedFrame: " + sysexSize);    if (sysexSize < 20)      return;    byte[] patchSysex;       if (sysex[0]==-16) //F0     {  patchSysex= new byte[sysexSize];       System.arraycopy(sysex, 0, patchSysex, 0, sysexSize);    } else     {      int i=0;      while ((sysex[i]!=-16) && (i<sysexSize)) i++;      if (i==sysexSize) return;      patchSysex= new byte[sysexSize-i];      System.arraycopy(sysex, i, patchSysex, 0, sysexSize-i);     }	        Patch p = new Patch(patchSysex);    Patch[] patarray = p.dissect();    for (int k = 0; k < patarray.length; k++) {      PatchEdit.Clipboard = patarray[k];      try {        ((PatchBasket)PatchEdit.desktop.getSelectedFrame()).PastePatch();      } catch (Exception ex) {        JOptionPane.showMessageDialog (null, "Library to Receive into must be the focused Window.","Error", JOptionPane.ERROR_MESSAGE);      }    }  }