Here you can find the source of info(Component parent, String message)
public static void info(Component parent, String message)
//package com.java2s; /*//from w w w . j a v a2 s . c o m * @(#)Util.java * * Created on 2005. 12. 15 * * This software is the confidential and proprietary informatioon of * POSTECH DP&NM. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Eric Kang. * * Contact: Eric Kang at eliot@postech.edu */ import javax.swing.*; import java.awt.*; public class Main { public static void info(Component parent, String message) { JOptionPane.showMessageDialog(parent, message, "Info", JOptionPane.INFORMATION_MESSAGE); } }