fileOut.write(myModel.getPatchAt(table.getSelectedRow()).sysex);
for (int i = 0; i < msgs.length; i++) fileOut.write(msgs[i].getMessage(),0,msgs[i].getLength());
    public void exportPatch(File file) throws IOException, FileNotFoundException {        if (table.getSelectedRowCount() == 0) {            ErrorMsg.reportError("Error", "No Patch Selected.");            return;        }        FileOutputStream fileOut = new FileOutputStream(file);        // Scene does not have sysex field, Hiroo        fileOut.write(myModel.getPatchAt(table.getSelectedRow()).sysex);        fileOut.close();    }