Here you can find the source of warningMessage(Component component, String title, String message)
public static void warningMessage(Component component, String title, String message)
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JOptionPane; public class Main { public static void warningMessage(Component component, String title, String message) { JOptionPane.showMessageDialog(component, message, title, JOptionPane.WARNING_MESSAGE); }//from w w w. j a v a2s . com }