PatchEdit.waitDialog.hide();
PatchEdit.hideWaitDialog();
  protected void sendPatchWorker (Patch p, int bankNum)  {    byte tmp[] = new byte[1180];  // send in 128 single-mix messages    try    {      PatchEdit.waitDialog.show();      for (int i = 0; i < 128; i++)      {        System.arraycopy(p.sysex, i * 1180, tmp, 0, 1180);        tmp[6] = (byte)bankNum;        tmp[7] = (byte)i; // mix #        send(tmp);        Thread.sleep(15);      }      PatchEdit.waitDialog.hide();    }    catch (Exception e)    {      ErrorMsg.reportStatus (e);      ErrorMsg.reportError("Error", "Unable to send Patch");    }  }