Here you can find the source of getIconError()
public static Icon getIconError()
//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"); } }