Java JOptionPane Info infoMsg(final String msg)

Here you can find the source of infoMsg(final String msg)

Description

Information message dialog

License

Open Source License

Parameter

Parameter Description
msg a parameter

Declaration

public static void infoMsg(final String msg) 

Method Source Code

//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);
            }
        });
    }
}

Related

  1. info(Component parent, String message)
  2. info(Component parent, String message)
  3. info(String message, Component parent)
  4. infoBox(String message, String title)
  5. infoMessage(Component owner, String title, String message, ModalityType modalityType)
  6. infoMsg(String msg)
  7. inform(String dlgTitle, String info, Component parent)
  8. inform(String message)
  9. information(String title, String message)