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