public class XJAlert extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL |
static int |
NO |
static int |
YES |
| Constructor and Description |
|---|
XJAlert() |
| Modifier and Type | Method and Description |
|---|---|
static XJAlert |
createInstance() |
static void |
disableEscapeKey() |
static void |
display(Component parent,
String title,
String message) |
static int |
displayAlert(Component parent,
String title,
String message,
String b1,
String b2,
int def,
int cancel) |
static int |
displayAlert(Component parent,
String title,
String message,
String b1,
String b2,
String b3,
int def,
int cancel) |
static int |
displayAlertYESNO(Component parent,
String title,
String message) |
static int |
displayAlertYESNOCANCEL(Component parent,
String title,
String message) |
int |
displayCustomAlert(Component parent,
String title,
String message,
String[] buttons,
int def,
int cancel) |
static void |
enableEscapeKey() |
static Component |
getParent(Component parent) |
boolean |
isDoNotShowAgain() |
static void |
setDefaultAlertIcon(Icon icon) |
void |
setDisplayDoNotShowAgainButton(boolean displayDoNotShowAgainButton) |
int |
showCustom(Component parent,
String title,
String message,
String b1,
String b2,
int def,
int cancel) |
void |
showSimple(Component parent,
String title,
String message) |
public static final int YES
public static final int NO
public static final int CANCEL
public static void disableEscapeKey()
public static void enableEscapeKey()
public static XJAlert createInstance()
public static int displayAlertYESNO(Component parent, String title, String message)
public static int displayAlertYESNOCANCEL(Component parent, String title, String message)
public static int displayAlert(Component parent, String title, String message, String b1, String b2, int def, int cancel)
public static int displayAlert(Component parent, String title, String message, String b1, String b2, String b3, int def, int cancel)
public int showCustom(Component parent, String title, String message, String b1, String b2, int def, int cancel)
public static void setDefaultAlertIcon(Icon icon)
public void setDisplayDoNotShowAgainButton(boolean displayDoNotShowAgainButton)
public boolean isDoNotShowAgain()
Copyright © 2013. All rights reserved.