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
-
MessageBox(Frame, String)
- Constructor, creates a BorderLayout with the string on the
top, and the ok button on the bottom, nothing in the Center.
-
ShowAndLayout()
- Display the dialog.
-
action(Event, Object)
- Destroy the dialog if any action happens.
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.
ShowAndLayout
public void ShowAndLayout()
- Display the dialog.
action
public boolean action(Event e,
Object o)
- Destroy the dialog if any action happens.
- Returns:
- true