Here you can find the source of infoMsg(final String msg)
Parameter | Description |
---|---|
msg | a parameter |
public static void infoMsg(final String msg)
//package com.java2s; //License from project: Open Source License import javax.swing.JOptionPane; import javax.swing.SwingUtilities; public class Main { /**//from w ww. j av a 2 s . c o m * Information message dialog * * @param msg */ public static void infoMsg(final String msg) { // Show it in a message box SwingUtilities.invokeLater(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, msg, "Information", JOptionPane.INFORMATION_MESSAGE); System.out.println(msg); } }); } }