byte [] mySysex = new byte[myPatch.sysex.length]; System.arraycopy(myPatch.sysex,0,mySysex,0,myPatch.sysex.length); if (table.getSelectedRowCount()==0) myModel.sceneList.add(new Scene(new Patch(mySysex, myPatch.deviceNum, myPatch.driverNum, myPatch.date.toString(), myPatch.author.toString(), myPatch.comment.toString()))); else myModel.sceneList.add(table.getSelectedRow(), new Scene(new Patch(mySysex, myPatch.deviceNum, myPatch.driverNum, myPatch.date.toString(), myPatch.author.toString(), myPatch.comment.toString())));
if (table.getSelectedRowCount()==0) myModel.sceneList.add(new Scene((Patch) myPatch.clone())); else myModel.sceneList.add(table.getSelectedRow(), new Scene((Patch) myPatch.clone()));
    public void PastePatch() {        Patch myPatch=PatchEdit.Clipboard;        if (myPatch!=null) {            byte [] mySysex = new byte[myPatch.sysex.length];            System.arraycopy(myPatch.sysex,0,mySysex,0,myPatch.sysex.length);            if (table.getSelectedRowCount()==0)                myModel.sceneList.add(new Scene(new Patch(mySysex,							  myPatch.deviceNum,							  myPatch.driverNum,							  myPatch.date.toString(),							  myPatch.author.toString(),							  myPatch.comment.toString())));            else                myModel.sceneList.add(table.getSelectedRow(),				      new Scene(new Patch(mySysex,							  myPatch.deviceNum,							  myPatch.driverNum,							  myPatch.date.toString(),							  myPatch.author.toString(),							  myPatch.comment.toString())));            changed=true;            myModel.fireTableDataChanged();        }    }