public class DemoUtility extends Object
| Constructor and Description |
|---|
DemoUtility() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setCloseOperation(JFrame f) |
static void |
setDemoDisableExitOnClose() |
static void |
showErrorDialog(Component c,
String errorMessage,
Throwable t)
Opens a JOptionPane with the error message and formatted stack trace of the throwable in a scrollable text area.
|
public static void setDemoDisableExitOnClose()
public static void setCloseOperation(JFrame f)
public static void showErrorDialog(Component c, String errorMessage, Throwable t)
c - optional argument for parent component to open modal error
dialog relative toerrorMessage - short string description of failure, must be non-nullt - the throwable that's being reported, must be non-nullCopyright © 2021. All rights reserved.