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.

Constructor Index

 o ErrorWindow(EuropaClient, String)
Constructs a Error window as a child of the given client and displaying the given message.

Method Index

 o handleEvent(Event)
Handle the "ok" button.
 o layout()
Overload the layout() method to additionally call pack().

Constructors

 o 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

Methods

 o handleEvent
  public boolean handleEvent(Event e)
Handle the "ok" button.
Overrides:
handleEvent in class Component
 o 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