Class hamlet.HelpDialog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hamlet.HelpDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----hamlet.HelpDialog

public class HelpDialog
extends Frame
Provides a popup help dialog box. Help text is displayed along with a Close button that removes the dialog from the display.

Constructor Index

 o HelpDialog(String)
Creates an empty help dialog with the specified title.

Method Index

 o action(Event, Object)
Looks for a click on the Close button, at which point the dialog is removed from the display.
 o setText(String)
Sets the text that is displayed in the help dialog.

Constructors

 o HelpDialog
  public HelpDialog(String title)
Creates an empty help dialog with the specified title. The initial size is 50 columns wide and 20 rows high. The dialog is not displayed; this is done by calling the show method.
Parameters:
title - The title of the help dialog

Methods

 o setText
  public void setText(String str)
Sets the text that is displayed in the help dialog.
 o action
  public boolean action(Event theEvent,
                        Object arg)
Looks for a click on the Close button, at which point the dialog is removed from the display.
Parameters:
theEvent - Event that triggered the action
arg - Argument associated with the event
Returns:
True if event handled, false otherwise
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index