Here you can find the source of showInfo(Component owner, String msg)
Parameter | Description |
---|---|
owner | a parameter |
msg | a parameter |
public static void showInfo(Component owner, String msg)
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JOptionPane; public class Main { /**/*from w w w .j av a 2s .c o m*/ * Shows an info dialog * * @param owner * @param title * @param msg */ public static void showInfo(Component owner, String title, String msg) { JOptionPane.showMessageDialog(owner, msg, title, JOptionPane.INFORMATION_MESSAGE); } /** * Shows an info dialog * * @param owner * @param msg */ public static void showInfo(Component owner, String msg) { showInfo(owner, "Information", msg); } /** * Shows an info dialog * * @param msg */ public static void showInfo(String msg) { showInfo(null, msg); } }