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
-
alertDialog(Frame, String)
- Constructor with parent Frame.
-
alertDialog(String)
- Constructor: default window position is used
-
action(Event, Object)
-
-
handleEvent(Event)
-
-
showWindow(String)
-
alertDialog
public alertDialog(String message)
- Constructor: default window position is used
- Parameters:
- message - message to be displayed
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
showWindow
void showWindow(String message)
action
public boolean action(Event evt,
Object arg)
- Overrides:
- action in class Component
handleEvent
public boolean handleEvent(Event evt)
- Overrides:
- handleEvent in class Component
All Packages Class Hierarchy This Package Previous Next Index