All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.awt.YesNoDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----benno.awt.YesNoDialog

public class YesNoDialog
extends Dialog
This dialog provides a procedural call to display a Yes/No option dialog box, returning either true or false depending on the answer.
The class is designed to be used via the static method ask() and cannot be instantiated directly.


Method Index

 o ask(Frame, String)
This method displays a YesNoDialog, with a supplied message.

Methods

 o ask
 public static boolean ask(Frame parent,
                           String msg)
This method displays a YesNoDialog, with a supplied message.

Parameters:
parent - The frame to which this dialog should be attached
msg - The message/question that the dialog is asking
Returns:
true if the Yes button is clicked, and false if the No button is clicked.

All Packages  Class Hierarchy  This Package  Previous  Next  Index