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

IcongetIconError()
Retrieves the standard error icon (the same one that JOptionPane uses).
return UIManager.getIcon("OptionPane.errorIcon");
voidguiError(String errormsg, String errortitle)
Create a gui dialog representing an error which occurred.
JOptionPane.showMessageDialog(null, errormsg, errortitle, JOptionPane.ERROR_MESSAGE);
voidlogErrorMessage(String msg)
log Error Message
if (System.getProperty("gpfMode") != null && "GUI".equals(System.getProperty("gpfMode"))) {
    JOptionPane.showOptionDialog(null, msg, "IDEPIX - Error Message", JOptionPane.DEFAULT_OPTION,
            JOptionPane.ERROR_MESSAGE, null, null, null);
} else {
    info(msg);
voidpopupError(String s, Throwable e)
popup Error
System.err.println("Error: " + s);
String msg = logError(s, e);
if (visible)
    JOptionPane.showMessageDialog(topLevelFrame, msg, "Error", JOptionPane.ERROR_MESSAGE);
voidprintErrorMessageAndExit(String message)
print Error Message And Exit
JOptionPane.showMessageDialog(null, message);
System.exit(1);
voidshowAudioNotAvailableError(String macId)
Show pop-up when audio device is not available for the particular settop
JOptionPane.showMessageDialog(null, "No audio device attached with Settop : " + macId,
        "No audio device found", JOptionPane.ERROR_MESSAGE);
voidshowBlockedErrorMsg(final Container parent, final String message, final boolean exit)
show Blocked Error Msg
JOptionPane.showMessageDialog(parent, message, UIManager.getString("OptionPane.messageDialogTitle"),
        JOptionPane.ERROR_MESSAGE);
if (exit) {
    System.exit(-1);
voidshowError(Component component, String title, String message)
Shows an error dialog.
JOptionPane.showMessageDialog(component, message, title, JOptionPane.ERROR_MESSAGE);
voidshowError(Component father, String title, String content)
show Error
JOptionPane.showMessageDialog(father, content, title, JOptionPane.ERROR_MESSAGE);
voidshowError(Component parent, String message)
show Error
JOptionPane.showMessageDialog(parent, message, "ChemLab", JOptionPane.ERROR_MESSAGE);