Class AlertWindow
java.lang.Object
|
+--AlertWindow
- public class AlertWindow
- extends java.lang.Object
Implements pop-up alert boxes which displays a message and requires the
user to confirm the message before proceeding.
Since the class only contains one static method and nothing else, it
should normally not be instantiated. The static method can be called
directly using AlertWindow.displayAlert("Title","A message.")
.
Method Summary |
static void |
displayAlert(int x,
int y,
java.lang.String title,
java.lang.String message)
Displays an alert box containing a message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlertWindow
public AlertWindow()
displayAlert
public static void displayAlert(int x,
int y,
java.lang.String title,
java.lang.String message)
- Displays an alert box containing a message. The method blocks until
the user confirms the message by clicking the OK button.
Note: Depending on which window manager/window system
you use, both window title and position might be ignored.
- Parameters:
x
- The x coordinate of the alert window.y
- The y coordinate of the alert window.title
- The string to be displayed in the title bar of
of the window associated with the alert box.message
- The string to be displayed in the alert box.