public class JBMacMessages extends MacMessagesEmulation
Constructor and Description |
---|
JBMacMessages() |
Modifier and Type | Method and Description |
---|---|
void |
showErrorDialog(java.lang.String title,
java.lang.String message,
java.lang.String okButton,
java.awt.Window window) |
int |
showMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String [] buttons,
boolean errorStyle,
java.awt.Window window,
int defaultOptionIndex,
int focusedOptionIndex,
DialogWrapper.DoNotAskOption doNotAskDialogOption)
Buttons are placed starting near the right side of the alert and going toward the left side
(for languages that read left to right).
|
void |
showOkMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String okText) |
void |
showOkMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String okText,
java.awt.Window window) |
int |
showYesNoCancelDialog(java.lang.String title,
java.lang.String message,
java.lang.String defaultButton,
java.lang.String alternateButton,
java.lang.String otherButton,
java.awt.Window window,
DialogWrapper.DoNotAskOption doNotAskOption) |
int |
showYesNoDialog(java.lang.String title,
java.lang.String message,
java.lang.String yesButton,
java.lang.String noButton,
java.awt.Window window) |
int |
showYesNoDialog(java.lang.String title,
java.lang.String message,
java.lang.String yesButton,
java.lang.String noButton,
java.awt.Window window,
DialogWrapper.DoNotAskOption doNotAskDialogOption) |
getInstance
public int showYesNoCancelDialog(java.lang.String title, java.lang.String message, java.lang.String defaultButton, java.lang.String alternateButton, java.lang.String otherButton, java.awt.Window window, DialogWrapper.DoNotAskOption doNotAskOption)
showYesNoCancelDialog
in class MacMessages
public int showMessageDialog(java.lang.String title, java.lang.String message, java.lang.String [] buttons, boolean errorStyle, java.awt.Window window, int defaultOptionIndex, int focusedOptionIndex, DialogWrapper.DoNotAskOption doNotAskDialogOption)
MacMessages
showMessageDialog
in class MacMessages
public void showOkMessageDialog(java.lang.String title, java.lang.String message, java.lang.String okText, java.awt.Window window)
showOkMessageDialog
in class MacMessages
public void showOkMessageDialog(java.lang.String title, java.lang.String message, java.lang.String okText)
showOkMessageDialog
in class MacMessages
public int showYesNoDialog(java.lang.String title, java.lang.String message, java.lang.String yesButton, java.lang.String noButton, java.awt.Window window)
showYesNoDialog
in class MacMessages
Messages.YES
if user pressed "Yes" or Messages.NO
if user pressed "No" button.public int showYesNoDialog(java.lang.String title, java.lang.String message, java.lang.String yesButton, java.lang.String noButton, java.awt.Window window, DialogWrapper.DoNotAskOption doNotAskDialogOption)
showYesNoDialog
in class MacMessages
Messages.YES
if user pressed "Yes" or Messages.NO
if user pressed "No" button.public void showErrorDialog(java.lang.String title, java.lang.String message, java.lang.String okButton, java.awt.Window window)
showErrorDialog
in class MacMessages