Class MessageDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----MessageDialog
- public class MessageDialog
- extends Dialog
This class represents a message dialog for an error or info message.
- Author:
- Vegard Brox
-
ERROR
- Indicates that this is an error message box
-
INFO
- Indicates that this is an info message box
-
MessageDialog(Frame, String, String, int)
- Creates a new, initially invisible, message dialog.
INFO
public static final int INFO
- Indicates that this is an info message box
ERROR
public static final int ERROR
- Indicates that this is an error message box
MessageDialog
public MessageDialog(Frame parent,
String title,
String message,
int type)
- Creates a new, initially invisible, message dialog.
- Parameters:
- parent - The parent frame of the dialog
- title - The title of the dialog
- message - The message to display
- type - The type of message, either INFO or ERROR