FileOutputStream fileOut= new FileOutputStream(file); fileOut.write(((Patch)myModel.PatchList.get(table.getSelectedRow())).sysex);
FileOutputStream fileOut = new FileOutputStream(file); fileOut.write(myModel.getPatchAt(table.getSelectedRow()).sysex);
    public void ExportPatch(File file) throws IOException,FileNotFoundException    {        if (table.getSelectedRowCount()==0)        {           ErrorMsg.reportError("Error", "No Patch Selected.");           return;	}        FileOutputStream fileOut= new FileOutputStream(file);        fileOut.write(((Patch)myModel.PatchList.get(table.getSelectedRow())).sysex);        fileOut.close();    }