public class ApplicationSupport
extends java.lang.Object
Constructor and Description |
---|
ApplicationSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
displayApplicationError(java.lang.String title,
java.lang.String prefix,
java.lang.Exception exception)
Display an error dialog box with information about the exception.
|
static int |
displayConfirmDialog(java.lang.String title,
java.lang.String message)
Display a confirmation dialog with a title and message
|
static void |
displayError(java.lang.Exception exception)
Display an error dialog box with information about the exception.
|
static void |
displayError(java.lang.String title,
java.lang.String message)
Display an error dialog box.
|
static void |
displayError(java.lang.String title,
java.lang.String prefix,
java.lang.Exception exception)
Display an error dialog box with information about the exception.
|
static void |
displayWarning(java.lang.Exception exception)
Display a warning dialog box with information about the exception.
|
static void |
displayWarning(java.lang.String title,
java.lang.String message)
Display a warning dialog box.
|
static void |
displayWarning(java.lang.String title,
java.lang.String prefix,
java.lang.Exception exception)
Display a warning dialog box with information about the exception.
|
static java.awt.Window |
getActiveWindow()
Get the active window which is in focus for this application.
|
public static java.awt.Window getActiveWindow()
public static int displayConfirmDialog(java.lang.String title, java.lang.String message)
title
- The title of the dialogmessage
- The message to displaypublic static void displayWarning(java.lang.Exception exception)
exception
- The exception about which the warning dialog is displayed.public static void displayWarning(java.lang.String title, java.lang.String message)
title
- Title of the warning dialog box.message
- The warning message to appear in the warning dialog box.public static void displayWarning(java.lang.String title, java.lang.String prefix, java.lang.Exception exception)
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception messasge.exception
- The exception about which the warning dialog is displayed.public static void displayError(java.lang.String title, java.lang.String message)
title
- Title of the warning dialog box.message
- The warning message to appear in the warning dialog box.public static void displayError(java.lang.Exception exception)
exception
- The exception about which the warning dialog is displayed.public static void displayError(java.lang.String title, java.lang.String prefix, java.lang.Exception exception)
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception messasge.exception
- The exception about which the warning dialog is displayed.public static void displayApplicationError(java.lang.String title, java.lang.String prefix, java.lang.Exception exception)
title
- Title of the warning dialog box.prefix
- Text that should appear in the dialog box before the exception messasge.exception
- The exception about which the warning dialog is displayed.