s.writeObject(myModel.PatchList);
s.writeObject(myModel.list);
    public void save() throws Exception    {        PatchEdit.showWaitDialog();        FileOutputStream f = new FileOutputStream(filename);        ObjectOutputStream s = new ObjectOutputStream(f);        s.writeObject(myModel.PatchList);        s.flush();        s.close();        f.close();        PatchEdit.hideWaitDialog();        changed=false;    }