All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ChaosDemos.alertDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ChaosDemos.alertDialog

public class alertDialog
extends Frame
Class to implement warning dialog box.
Uses Frame instead of Dialog since some java machines do not implement the Dialog class yet.
If the parent Frame is known, window pops up in pleasing relationship to parent window

Version:
March 15 1997
Author:
Michael Cross

Constructor Index

 o alertDialog(Frame, String)
Constructor with parent Frame.
 o alertDialog(String)
Constructor: default window position is used

Method Index

 o action(Event, Object)
 o handleEvent(Event)
 o showWindow(String)

Constructors

 o alertDialog
 public alertDialog(String message)
Constructor: default window position is used

Parameters:
message - message to be displayed
 o alertDialog
 public alertDialog(Frame target,
                    String message)
Constructor with parent Frame. Window pops up in pleasign relationship to parent. If null is passed a default position is used for the popup window.

Parameters:
target - reference to parent window
message - text to be displayed

Methods

 o showWindow
 void showWindow(String message)
 o action
 public boolean action(Event evt,
                       Object arg)
Overrides:
action in class Component
 o handleEvent
 public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index