Class YesNoDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class YesNoDialog extends Dialog
Class YesNoDialog is used to display a message to which the user can respond with one of two reponses (i.e. "YES" or "NO". For example, this dialog is useful for prompting a user: Eg.
    if( hasUnsavedChanges() ) {
       YesNoDialog confirm_save = 
                   new YesNoDialog( my_frame, true, "Save Changes?" );
       confirm_save.show();
       if( confirm_save.getAction() == YesNoDialog.YES ) {
          saveChanges();
       }
    }
  


Supported API:true

Extendable: false
See Also: