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.
-
HelpDialog(String)
- Creates an empty help dialog with the specified title.
-
action(Event, Object)
- Looks for a click on the Close button, at which
point the dialog is removed from the display.
-
setText(String)
- Sets the text that is displayed in the help dialog.
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
setText
public void setText(String str)
- Sets the text that is displayed in the help dialog.
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