Java Utililty Methods JOptionPane Error

List of utility methods to do JOptionPane Error

Description

The list of methods to do JOptionPane Error are organized into topic(s).

Method

voidshowError(String errorMsg)
show Error
showError(null, errorMsg);
voidshowError(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);
voidshowError(String message)
show Error
JOptionPane.showMessageDialog(new JDialog(), message, "Error", JOptionPane.ERROR_MESSAGE);
voidshowError(String message)
Display an error message in a dialog box.
JOptionPane.showMessageDialog(null, message, 
        "utils.error" 
        , JOptionPane.ERROR_MESSAGE);
voidshowError(String msg, String title)
show Error
JDialog dialog = new JDialog();
dialog.setAlwaysOnTop(true);
JOptionPane.showMessageDialog(dialog, msg, title, JOptionPane.ERROR_MESSAGE);
voidshowError(Throwable e)
show Error
showError(e, "");
voidshowError(Window parent)
show Error
JOptionPane.showMessageDialog(parent, "The weight values must sum to 1.0!", "Error",
        JOptionPane.ERROR_MESSAGE);
voidshowErrorBox(Component aParent, String aTitle, String aMessage)
Displays an error message dialog.
JOptionPane.showMessageDialog(aParent, aMessage, aTitle, JOptionPane.ERROR_MESSAGE);
voidshowErrorBox(Component pParent, String pMessage, String pTitle)
show Error Box
JOptionPane.showMessageDialog(pParent, pMessage, pTitle, JOptionPane.ERROR_MESSAGE);
intshowErrorConfirmBox(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;