Class MessageBox

Class MessageBox

MessageBox

class MessageBox
extends Dialog
A dialog box that contains ONE string, and ONE button. The button is an OK button, and the string is an informational string

Constructor Index

 o MessageBox(Frame, String)
Constructor, creates a BorderLayout with the string on the top, and the ok button on the bottom, nothing in the Center.

Method Index

 o ShowAndLayout()
Display the dialog.
 o action(Event, Object)
Destroy the dialog if any action happens.

Constructors

 o MessageBox
  public MessageBox(Frame parent,
                    String msg)
Constructor, creates a BorderLayout with the string on the top, and the ok button on the bottom, nothing in the Center.
Parameters:
parent - The frame, for passing to the Dialog constructor.
msg - A string that will be the main 'message' of this dialog box.

Methods

 o ShowAndLayout
  public void ShowAndLayout()
Display the dialog.
 o action
  public boolean action(Event e,
                        Object o)
Destroy the dialog if any action happens.
Returns:
true