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