Class games.Battle.client.EuropaClient.ErrorWindow
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.client.EuropaClient.ErrorWindow
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----games.Battle.client.EuropaClient.ErrorWindow
- public class ErrorWindow
- extends Frame
Implements a small modal dialog box which displays a single
line of text along with an "ok" box. When executed, the
dialog box suspends the calling EuropaClient instance, and
does not return control until the "ok" button is pressed.
-
ErrorWindow(EuropaClient, String)
- Constructs a Error window as a child of the given client
and displaying the given message.
-
handleEvent(Event)
- Handle the "ok" button.
-
layout()
- Overload the layout() method to additionally call pack().
ErrorWindow
public ErrorWindow(EuropaClient client,
String msg)
- Constructs a Error window as a child of the given client
and displaying the given message.
- Parameters:
- client - the client to suspend while the dialog lives
- msg - the error message to display
handleEvent
public boolean handleEvent(Event e)
- Handle the "ok" button.
- Overrides:
- handleEvent in class Component
layout
public synchronized void layout()
- Overload the layout() method to additionally call pack().
- Overrides:
- layout in class Container
All Packages Class Hierarchy This Package Previous Next Index