public class Messages
extends Object
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static void |
log(Object from,
String message) |
static void |
log(String message) |
static void |
loge(String message) |
static void |
loge(String message,
Throwable e) |
static void |
logf(String message,
Object... args) |
static int |
showCustomQuestion(Frame editor,
String title,
String primary,
String secondary,
int highlight,
String... options) |
static void |
showError(String title,
String message,
Throwable e)
Show an error message that's actually fatal to the program.
|
static void |
showMessage(String title,
String message)
"No cookie for you" type messages.
|
static void |
showTrace(String title,
String message,
Throwable t,
boolean fatal)
Testing a new warning window that includes the stack trace.
|
static void |
showWarning(String title,
String message)
Non-fatal error message.
|
static void |
showWarning(String title,
String message,
Throwable e)
Non-fatal error message with optional stack trace side dish.
|
static void |
showWarningTiered(String title,
String primary,
String secondary,
Throwable e)
Non-fatal error message with optional stack trace side dish.
|
static int |
showYesNoCancelQuestion(Editor editor,
String title,
String primary,
String secondary) |
static int |
showYesNoQuestion(Frame editor,
String title,
String primary,
String secondary) |
public static void showMessage(String title, String message)
public static void showWarning(String title, String message)
public static void showWarning(String title, String message, Throwable e)
public static void showWarningTiered(String title, String primary, String secondary, Throwable e)
public static void showError(String title, String message, Throwable e)
public static void showTrace(String title, String message, Throwable t, boolean fatal)
public static int showYesNoCancelQuestion(Editor editor, String title, String primary, String secondary)
public static int showYesNoQuestion(Frame editor, String title, String primary, String secondary)
public static int showCustomQuestion(Frame editor, String title, String primary, String secondary, int highlight, String... options)
highlight
- A valid array index for options[] that specifies the
default (i.e. safe) choice.public static void log(Object from, String message)
public static void log(String message)
public static void logf(String message, Object... args)
public static void loge(String message, Throwable e)
public static void loge(String message)