byte [] mySysex = new byte[myPatch.sysex.length]; System.arraycopy(myPatch.sysex,0,mySysex,0,myPatch.sysex.length); PatchEdit.Clipboard=new Patch(mySysex, myPatch.deviceNum, myPatch.driverNum, myPatch.date.toString(), myPatch.author.toString(), myPatch.comment.toString());
PatchEdit.Clipboard = (Patch) myPatch.clone();
    public void CopySelectedPatch()    {        try        {            if (table.getSelectedRowCount()==0)            {		    ErrorMsg.reportError("Error", "No Patch Selected.");		    return;	    }            Patch myPatch=((Patch)myModel.PatchList.get(table.getSelectedRow()));            byte [] mySysex = new byte[myPatch.sysex.length];            System.arraycopy(myPatch.sysex,0,mySysex,0,myPatch.sysex.length);            PatchEdit.Clipboard=new Patch(mySysex,					  myPatch.deviceNum,					  myPatch.driverNum,					  myPatch.date.toString(),					  myPatch.author.toString(),					  myPatch.comment.toString());        }catch (Exception e)        {};    }