Java JOptionPane Warning getIconWarning()

Here you can find the source of getIconWarning()

Description

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

License

Apache License

Return

The warning icon.

Declaration

public static Icon getIconWarning() 

Method Source Code

//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");
    }
}

Related

  1. displayWarning(String strMsg)
  2. displayWarningMessage(Component parentComponent, String message, String windowTitle)
  3. messageWarning(String s)
  4. messageWarning(String s)
  5. popupMessage(String title, String message, @SuppressWarnings("SameParameterValue") int icon)
  6. popupPrompt(String title, String message, @SuppressWarnings("SameParameterValue") String[] choices, String defaultOption)