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.
-
MessageBox(Frame, String, String, Image)
- Constructs message box with given parameters.
-
MessageBox(Frame, String, String[], Image)
- Constructs message box with given parameters.
-
actionPerformed(ActionEvent)
-
Processes action events occurring on this component.
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.
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.
actionPerformed
public void actionPerformed(ActionEvent e)
- Processes action events occurring on this component.
- Parameters:
- e - the action event.
- See Also:
- ActionListener