Java tutorial
//package com.java2s; import java.awt.Window; import javax.swing.JOptionPane; public class Main { public static void showWarning(Window owner, String msg, String title) { JOptionPane.showMessageDialog(owner, msg, title, JOptionPane.WARNING_MESSAGE); } }