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

voiderror(Component parent, String message)
error
JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE);
voiderror(Component parent, String message)
error
JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE);
voiderror(Exception ex)
error
ex.printStackTrace(System.err);
JOptionPane.showMessageDialog(null, "" + ex.getClass().getSimpleName() + ": " + ex.getMessage());
voiderror(final Component component, final Object msg)
Shows an error dialog.
Logger.getLogger(component.getClass().getName()).log(Level.SEVERE, null, msg);
JOptionPane.showMessageDialog(component, msg.toString(), "Error", JOptionPane.ERROR_MESSAGE);
voiderror(String message, Component parent)
Show an alert window.
Toolkit.getDefaultToolkit().beep();
JOptionPane.showMessageDialog(parent, message, "Alert", JOptionPane.ERROR_MESSAGE);
voiderror(String message, String title)
error
JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
voiderrorMessage(Component component, String title, String message)
error Message
JOptionPane.showMessageDialog(component, message, title, JOptionPane.ERROR_MESSAGE);
voiderrorMessage(Component parent, Throwable t)
Display an error dialog with the exception.
t.printStackTrace();
JOptionPane.showMessageDialog(parent, t.toString(), "Error", JOptionPane.ERROR_MESSAGE);
voiderrorMessage(Exception exceptionMsg, boolean quiet)
error Message
Object[] options = { "OK", };
JOptionPane.showOptionDialog(null, exceptionMsg, messagerHeader, JOptionPane.DEFAULT_OPTION,
        JOptionPane.ERROR_MESSAGE, null, options, options[0]);
if (!quiet) {
    exceptionMsg.printStackTrace();
voidexibeMsgErro(String msg)
exibe Msg Erro
exibeMsg(msg, JOptionPane.ERROR_MESSAGE);