|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.gui.awt.dialogs.Dialogs
Convenience class that provides a number of static helper methods to deal with dialogs.
Method Summary | |
static void |
center(Window window)
Centers the argument window on screen. |
static Integer |
getInteger(Frame owner,
String title,
String message,
int minValue,
int initialValue,
int maxValue,
String okText,
String cancelText)
Creates a new IntegerDialog, displays it and returns the Integer value specified by the user (or null if the dialog was canceled). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void center(Window window)
public static Integer getInteger(Frame owner, String title, String message, int minValue, int initialValue, int maxValue, String okText, 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
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |