PatchEdit.waitDialog.show();
PatchEdit.showWaitDialog();
    public void save() throws Exception {        PatchEdit.waitDialog.show();        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.waitDialog.hide();        changed=false;    }