All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pat.apps.Message

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----pat.apps.Message

public class Message
extends Frame
A simply class for making a message box with arbitrary text inside it.


Constructor Index

 o Message()

Method Index

 o action(Event, Object)
This action will dispose of this graphics object and deliver whatever action event it receives to the component object supplied by the ask method.
 o addButton(String)
Add a button to the message with text b.
 o addCentered(String)
Add a centered line of text to the message.
 o addLeft(String)
Add a left justified line of text to the message.
 o addRight(String)
Add a right justified line of text to the message.
 o ask(Component)
Open the window.

Constructors

 o Message
  public Message()

Methods

 o ask
  public void ask(Component c)
Open the window. When any of the buttons on the window are clicked, the associated message will be delivered to component c.

 o addButton
  public void addButton(String b)
Add a button to the message with text b.

 o addCentered
  public void addCentered(String lb)
Add a centered line of text to the message.

 o addLeft
  public void addLeft(String lb)
Add a left justified line of text to the message.

 o addRight
  public void addRight(String lb)
Add a right justified line of text to the message.

 o action
  public boolean action(Event e,
                        Object o)
This action will dispose of this graphics object and deliver whatever action event it receives to the component object supplied by the ask method.

Overrides:
action in class Component
See Also:
also

All Packages  Class Hierarchy  This Package  Previous  Next  Index