Class OkCancelDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

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


Supported API:true

Extendable: false
See Also: