All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.MessageDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----gjt.GJTDialog
                                           |
                                           +----gjt.WorkDialog
                                                   |
                                                   +----gjt.MessageDialog

public class MessageDialog
extends WorkDialog
implements ActionListener
A dialog that displays a message and comes equipped with an Ok button with which the dialog is dismissed.

Note that there is only one MessageDialog, that gets reused. Clients must call getMessageDialog() in order to access the one and only MessageDialog.

Note: The 1.0.2 version of the AWT seems to have introduced a bug that causes pack() to work incorrectly under Win95.

See Also:
GJTDialog, MessageDialogTest, DialogTest

Constructor Index

 o MessageDialog(Frame, DialogClient, String, String, Image)
 o MessageDialog(Frame, DialogClient, String, String, Image, boolean)

Method Index

 o actionPerformed(ActionEvent)
 o doLayout()
 o layout()
Deprecated.

Constructors

 o MessageDialog
 public MessageDialog(Frame frame,
                      DialogClient client,
                      String title,
                      String message,
                      Image image)
 o MessageDialog
 public MessageDialog(Frame frame,
                      DialogClient client,
                      String title,
                      String message,
                      Image image,
                      boolean modal)

Methods

 o layout
 public void layout()
Note: layout() is deprecated. as of JDK1.1

Overrides:
layout in class Container
 o doLayout
 public void doLayout()
Overrides:
doLayout in class Container
 o actionPerformed
 public void actionPerformed(ActionEvent event)

All Packages  Class Hierarchy  This Package  Previous  Next  Index