public class WindowManager
extends java.lang.Object
| Constructor and Description |
|---|
WindowManager() |
| Modifier and Type | Method and Description |
|---|---|
static WindowManager |
getInstance() |
void |
recallWindowSizePosition(java.awt.Window window)
call this before the window.
|
void |
recordWindowSizePosition(java.awt.Window window)
record the final position of the dialog.
|
static int |
showConfirmDialog(java.awt.Component parent,
javax.swing.JPanel omessage,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon)
TODO: this will show the icon.
|
static int |
showConfirmDialog(java.awt.Component parent,
java.lang.Object omessage,
java.lang.String title,
int optionType)
new okay/cancel dialog that is resizable and is made with a simple dialog.
|
void |
showModalDialog(java.awt.Dialog dia)
convenient method for showing dialog which is modal.
|
public static WindowManager getInstance()
public static int showConfirmDialog(java.awt.Component parent,
javax.swing.JPanel omessage,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon)
parent - omessage - title - optionType - messageType - icon - public void recallWindowSizePosition(java.awt.Window window)
window - the window.public void recordWindowSizePosition(java.awt.Window window)
window - the windowpublic void showModalDialog(java.awt.Dialog dia)
dia - the dialog that is set to be modal.public static int showConfirmDialog(java.awt.Component parent,
java.lang.Object omessage,
java.lang.String title,
int optionType)
parent - the parent window or dialog.omessage - String or Component.title - the dialog title.optionType. - This must be OK_CANCEL_OPTION or YES_NO_CANCEL_OPTION