public class StaticDialogs extends Object
StaticDialogs.showMessage("Hello, world!");
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL_OPTION
CANCEL option for the confirm message dialogs
|
static int |
NO_OPTION
NO option for the confirm message dialogs
|
static int |
YES_OPTION
YES option for the confirm message dialogs
|
| Modifier and Type | Method and Description |
|---|---|
static int |
confirmMessage(String message)
Show confirmation dialog.
|
static int |
confirmMessage(String message,
String title)
Show confirmation dialog.
|
static Double |
inputDoubleValue(String message)
Show dialog and asks user for Double input.
|
static Double |
inputDoubleValue(String message,
String title,
double initial)
Show dialog and asks user for Double input.
|
static Integer |
inputIntValue(String message)
Show dialog and asks user for integer input.
|
static Integer |
inputIntValue(String message,
String title,
int initial)
Show dialog and asks user for integer input.
|
static String |
inputStringValue(String message)
Show dialog and asks user for String input.
|
static String |
inputStringValue(String message,
String title,
String initial)
Show dialog and asks user for String input.
|
static boolean |
isGUISupported()
Determine whether GUI will be used for showing all messages.
|
static void |
setGUISupported(boolean GUISupported,
String password)
Explicitly set whether GUI is supported.
|
static void |
showErrorMessage(String message)
Show error message as
JOptionPane dialog. |
static void |
showErrorMessage(String message,
String title)
Show error message as
JOptionPane dialog. |
static void |
showMessage(String message)
Show information message as
JOptionPane dialog. |
static void |
showMessage(String message,
String title)
Show information message as
JOptionPane dialog. |
public static final int YES_OPTION
public static final int NO_OPTION
public static final int CANCEL_OPTION
public static void showErrorMessage(String message)
JOptionPane dialog. Title will be "Error".message - error message to showpublic static void setGUISupported(boolean GUISupported,
String password)
throws InvalidPasswordException
GUISupported - true if GUI is supported, false otherwisepassword - emuStudio password.InvalidPasswordException - if the password is wrongpublic static boolean isGUISupported()
public static void showErrorMessage(String message, String title)
JOptionPane dialog.message - error message to showtitle - title of the dialogpublic static void showMessage(String message)
JOptionPane dialog.
Title will be "Information message".message - information message to showpublic static void showMessage(String message, String title)
JOptionPane dialog.message - information message to showtitle - title of the messagepublic static Integer inputIntValue(String message)
message - message to showpublic static Integer inputIntValue(String message, String title, int initial)
message - message to showtitle - title of the input messageinitial - initial valuepublic static String inputStringValue(String message)
message - message to showpublic static String inputStringValue(String message, String title, String initial)
message - message to showtitle - title of the input messageinitial - initial valuepublic static Double inputDoubleValue(String message)
message - message to showpublic static Double inputDoubleValue(String message, String title, double initial)
message - message to showtitle - title of the messageinitial - initial valuepublic static int confirmMessage(String message)
message - message to showpublic static int confirmMessage(String message, String title)
message - message to showtitle - title of the messageCopyright © 2017. All rights reserved.