gecco.client.dialogs
Class Error

java.lang.Object
  |
  +--gecco.client.dialogs.Error

public class Error
extends Object

This class supplies alert boxes that display error messages.

Author:
Andreas Enblom

Inner Class Summary
(package private) static class Error.OKAction
          ActionListener that closes the given dialog when the action is performed.
 
Constructor Summary
private Error()
          No contructor is necessary.
 
Method Summary
static void display(String error, Frame owner)
          Displays a modal alert dialog with the given message.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Error

private Error()
No contructor is necessary.
Method Detail

display

public static void display(String error,
                           Frame owner)
Displays a modal alert dialog with the given message. There is an OK button that closes the dialog.
Parameters:
error - The error message to display. If the message should be formatted in a way different from a one line standard JLabel, use html-format of the text.
owner - The frame that owns the modal error dialog.