Java JOptionPane Error getIconError()

Here you can find the source of getIconError()

Description

Retrieves the standard error icon (the same one that JOptionPane uses).

License

Apache License

Return

The error icon.

Declaration

public static Icon getIconError() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.*;

public class Main {
    /**//from   w  w  w . j ava 2  s. c o  m
     * Retrieves the standard error icon (the same one that JOptionPane uses).
     *
     * @return The error icon.
     */
    public static Icon getIconError() {
        return UIManager.getIcon("OptionPane.errorIcon");
    }
}

Related

  1. error(String message, String title)
  2. errorMessage(Component component, String title, String message)
  3. errorMessage(Component parent, Throwable t)
  4. errorMessage(Exception exceptionMsg, boolean quiet)
  5. exibeMsgErro(String msg)
  6. guiError(String errormsg, String errortitle)
  7. logErrorMessage(String msg)
  8. popupError(String s, Throwable e)
  9. printErrorMessageAndExit(String message)