public class GUIMessageUtils extends Object
Constructor and Description |
---|
GUIMessageUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
openConfirmationDialog(String msg,
String title)
Open a confirmation Dialog box (OK/Cancel) with the given message and the given title
|
static void |
openErrorDialog(Exception e,
Component main)
Open a Message Dialog box to indicate users an exception occurred and give some feedback.
|
static void |
openErrorDialog(String message)
Open a Message Dialog box to indicate users an error occurred and give some feedback.
|
static void |
openErrorDialog(String message,
Component main)
Open a Message Dialog box to indicate users an error occurred and give some feedback.
|
static void |
openWarningDialog(String message)
Open a Message Dialog box to indicate users a warning message.
|
public static void openErrorDialog(Exception e, Component main)
e
- the exception to displaymain
- the parent componentpublic static void openErrorDialog(String message)
message
- the message to show to the userpublic static void openErrorDialog(String message, Component main)
message
- the message to show to the usermain
- the parent componentpublic static void openWarningDialog(String message)
message
- the message to show to the userpublic static boolean openConfirmationDialog(String msg, String title)
msg
- the message to display in the boxtitle
- the title of the boxCopyright © 2005–2020. All rights reserved.