public class Dialogs
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Dialogs() |
| Modifier and Type | Method and Description |
|---|---|
static void |
center(java.awt.Window window)
Centers the argument window on screen.
|
static java.lang.Integer |
getInteger(java.awt.Frame owner,
java.lang.String title,
java.lang.String message,
int minValue,
int initialValue,
int maxValue,
java.lang.String okText,
java.lang.String cancelText)
Creates a new IntegerDialog, displays it and returns the Integer
value specified by the user (or null if the dialog was canceled).
|
public static void center(java.awt.Window window)
public static java.lang.Integer getInteger(java.awt.Frame owner,
java.lang.String title,
java.lang.String message,
int minValue,
int initialValue,
int maxValue,
java.lang.String okText,
java.lang.String cancelText)
owner - frame from which the dialog is spawnedtitle - text for the title bar of the dialogmessage - message displayed in the dialogminValue - minimal allowed integer value to be entered by the userinitialValue - initial integer value shown in the dialogmaxValue - maximal allowed integer value to be entered by the userokText - the text for the OK buttoncancelText - the text for the cancel button