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.
-
Message()
-
-
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.
-
addButton(String)
- Add a button to the message with text b.
-
addCentered(String)
- Add a centered line of text to the message.
-
addLeft(String)
- Add a left justified line of text to the message.
-
addRight(String)
- Add a right justified line of text to the message.
-
ask(Component)
- Open the window.
Message
public Message()
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.
addButton
public void addButton(String b)
- Add a button to the message with text b.
addCentered
public void addCentered(String lb)
- Add a centered line of text to the message.
addLeft
public void addLeft(String lb)
- Add a left justified line of text to the message.
addRight
public void addRight(String lb)
- Add a right justified line of text to the message.
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