All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sofiae.util.AlertWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----sofiae.util.AlertWindow

public class AlertWindow
extends java.awt.Dialog
implements java.awt.event.ActionListener
This class defines a very simple alert window, with just a "OK" button. It uses the TextCanvas class to display its message properly in the allotted space.

Version:
1.00, 24 August 2001
Author:
François Suter
See Also:
sofiae.util.TextCanvas

Variable Index

 o BUTTON_HEIGHT
 o DEFAULT_HEIGHT
 o DEFAULT_WIDTH
 o font
 o okButton
 o textArea
 o theString

Constructor Index

 o AlertWindow(String)
 o AlertWindow(String, Font)
 o AlertWindow(String, int, int, Font)

Method Index

 o actionPerformed(ActionEvent)

Variables

 o DEFAULT_WIDTH
 private static final int DEFAULT_WIDTH
 o DEFAULT_HEIGHT
 private static final int DEFAULT_HEIGHT
 o BUTTON_HEIGHT
 private static final int BUTTON_HEIGHT
 o okButton
 private java.awt.Button okButton
 o theString
 private java.lang.String theString
 o textArea
 private sofiae.util.TextCanvas textArea
 o font
 private java.awt.Font font

Constructors

 o AlertWindow
 public AlertWindow(java.lang.String alertString,
                    int width,
                    int height,
                    java.awt.Font newFont)
 o AlertWindow
 public AlertWindow(java.lang.String alertString,
                    java.awt.Font newFont)
 o AlertWindow
 public AlertWindow(java.lang.String alertString)

Methods

 o actionPerformed
 public void actionPerformed(java.awt.event.ActionEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index