Class MessageBox

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

public class MessageBox
extends Dialog
implements ActionListener
This class used to display messages in message box dialog.


Constructor Index

 o MessageBox(Frame, String, String, Image)
Constructs message box with given parameters.
 o MessageBox(Frame, String, String[], Image)
Constructs message box with given parameters.

Method Index

 o actionPerformed(ActionEvent)
Processes action events occurring on this component.

Constructors

 o MessageBox
 public MessageBox(Frame parent,
                   String title,
                   String msg[],
                   Image image)
Constructs message box with given parameters.

Parameters:
parent - the parent frame
title - message box title
msg - array of Strings - message body
image - image to show in the box - e.g. warning, info.
 o MessageBox
 public MessageBox(Frame parent,
                   String title,
                   String msg,
                   Image image)
Constructs message box with given parameters.

Parameters:
parent - the parent frame
title - message box title
msg - message body
image - image to show in the box - e.g. warning, info.

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Processes action events occurring on this component.

Parameters:
e - the action event.
See Also:
ActionListener