All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Window | +----java.awt.Dialog | +----Acme.Widgets.ButtonDialog | +----Acme.Widgets.OkCancelBox
Puts up a dialog with a specified message and two buttons, Ok and Cancel. All user input is locked out. The program can retrieve the user's answer via the getAnswer() method.
Sample usage:
OkCancelBox oc = new OkCancelBox( this, "Sample OkCancelBox" ); oc.show(); switch ( oc.getAnswer() ) { case OkCancelBox.OK: [your code here] break; case OkCancelBox.CANCEL: [your code here] break; }
Fetch the software.
Fetch the entire Acme package.
public static final int OKCANCEL
public static final int CANCEL
public OkCancelBox(Frame parent, String message)
public OkCancelBox(Frame parent, String title, String message)
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs