All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Widgets.YesNoCancelBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----Acme.Widgets.ButtonDialog
                                           |
                                           +----Acme.Widgets.YesNoCancelBox

public class YesNoCancelBox
extends ButtonDialog
A Yes/No/Cancel box.

Puts up a dialog with a specified message and three buttons, Yes No and Cancel. All user input is locked out. The program can retrieve the user's answer via the getAnswer() method.

Sample usage:


 YesNoCancelBox ync = new YesNoCancelBox( this, "Sample YesNoCancelBox" );
 ync.show();
 switch ( ync.getAnswer() )
     {
     case YesNoCancelBox.YES:
     [your code here]
     break;
     case YesNoCancelBox.NO:
     [your code here]
     break;
     case YesNoCancelBox.CANCEL:
     [your code here]
     break;
     }
 

Fetch the software.
Fetch the entire Acme package.


Variable Index

 o CANCEL
 o NO
 o YES

Constructor Index

 o YesNoCancelBox(Frame, String)
Constructor, default title.
 o YesNoCancelBox(Frame, String, String)
Constructor, specified title.

Variables

 o YES
 public static final int YES
 o NO
 public static final int NO
 o CANCEL
 public static final int CANCEL

Constructors

 o YesNoCancelBox
 public YesNoCancelBox(Frame parent,
                       String message)
Constructor, default title.

 o YesNoCancelBox
 public YesNoCancelBox(Frame parent,
                       String title,
                       String message)
Constructor, specified title.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs