Here you can find the source of getIconWarning()
public static Icon getIconWarning()
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { /**/* w w w . ja v a 2s .c om*/ * Retrieves the standard warning icon (the same one that JOptionPane uses). * * @return The warning icon. */ public static Icon getIconWarning() { return UIManager.getIcon("OptionPane.warningIcon"); } }