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

Variable Index

 o ERROR
Indicates that this is an error message box
 o INFO
Indicates that this is an info message box

Constructor Index

 o MessageDialog(Frame, String, String, int)
Creates a new, initially invisible, message dialog.

Variables

 o INFO
 public static final int INFO
Indicates that this is an info message box

 o ERROR
 public static final int ERROR
Indicates that this is an error message box

Constructors

 o 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