List of utility methods to do JOptionPane Error
Icon | getIconError() Retrieves the standard error icon (the same one that JOptionPane uses). return UIManager.getIcon("OptionPane.errorIcon"); |
void | guiError(String errormsg, String errortitle) Create a gui dialog representing an error which occurred. JOptionPane.showMessageDialog(null, errormsg, errortitle, JOptionPane.ERROR_MESSAGE); |
void | logErrorMessage(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); |
void | popupError(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); |
void | printErrorMessageAndExit(String message) print Error Message And Exit JOptionPane.showMessageDialog(null, message); System.exit(1); |
void | showAudioNotAvailableError(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); |
void | showBlockedErrorMsg(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); |
void | showError(Component component, String title, String message) Shows an error dialog. JOptionPane.showMessageDialog(component, message, title, JOptionPane.ERROR_MESSAGE); |
void | showError(Component father, String title, String content) show Error JOptionPane.showMessageDialog(father, content, title, JOptionPane.ERROR_MESSAGE); |
void | showError(Component parent, String message) show Error JOptionPane.showMessageDialog(parent, message, "ChemLab", JOptionPane.ERROR_MESSAGE);
|