Class gjt.GJTDialog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.GJTDialog

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

public class GJTDialog
extends Dialog
A base class for gjt dialog classes, this concrete class establishes the relationship between a dialog and its client (DialogClient).

Note that show() is overridden to ensure that the dialog is centered in the frame which is specified as its parent. This is necessary due to a bug in the Win95 implementation of the AWT (version 1.0.2) that causes dialogs to be displayed at a screen coordinate of 0,0. While the overridden show() is not necessary under non-Win95 Java implementations, it alleviates the Win95 bug and results in no dire consequences on other platforms.

See Also:
MessageDialog, QuestionDialog, YesNoDialog, ProgressDialog, DialogTest

Variable Index

 o client

Constructor Index

 o GJTDialog(Frame, String, DialogClient, boolean)

Method Index

 o setClient(DialogClient)
 o show()

Variables

 o client
  protected DialogClient client

Constructors

 o GJTDialog
  public GJTDialog(Frame frame,
                   String title,
                   DialogClient client,
                   boolean modal)

Methods

 o setClient
  public void setClient(DialogClient client)
 o show
  public void show()
Overrides:
show in class Window

All Packages  Class Hierarchy  This Package  Previous  Next  Index