List of utility methods to do JOptionPane Error
void | showError(String errorMsg) show Error showError(null, errorMsg); |
void | showError(String macAddress, String message) When an error occurs while retrieving Settop, the method brings up a dialog that displays the mac address and error message. JOptionPane.showMessageDialog(null, "Problems in attempting to perform the action on Settop[" + macAddress + "].\n" + message + "\n" + "Please see catsvision.log for more details.", "Unable to perform the action", JOptionPane.ERROR_MESSAGE); |
void | showError(String message) show Error JOptionPane.showMessageDialog(new JDialog(), message, "Error", JOptionPane.ERROR_MESSAGE); |
void | showError(String message) Display an error message in a dialog box. JOptionPane.showMessageDialog(null, message,
"utils.error"
, JOptionPane.ERROR_MESSAGE);
|
void | showError(String msg, String title) show Error JDialog dialog = new JDialog();
dialog.setAlwaysOnTop(true);
JOptionPane.showMessageDialog(dialog, msg, title, JOptionPane.ERROR_MESSAGE);
|
void | showError(Throwable e) show Error showError(e, "");
|
void | showError(Window parent) show Error JOptionPane.showMessageDialog(parent, "The weight values must sum to 1.0!", "Error", JOptionPane.ERROR_MESSAGE); |
void | showErrorBox(Component aParent, String aTitle, String aMessage) Displays an error message dialog. JOptionPane.showMessageDialog(aParent, aMessage, aTitle, JOptionPane.ERROR_MESSAGE); |
void | showErrorBox(Component pParent, String pMessage, String pTitle) show Error Box JOptionPane.showMessageDialog(pParent, pMessage, pTitle, JOptionPane.ERROR_MESSAGE); |
int | showErrorConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption) show Error Confirm Box UIManager.put("OptionPane.noButtonText", pLeftOption); UIManager.put("OptionPane.yesButtonText", pRightOption); int result = JOptionPane.showConfirmDialog(pParent, pMessage, pTitle, JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE); UIManager.put("OptionPane.noButtonText", "No"); UIManager.put("OptionPane.yesButtonText", "Yes"); return result; |