Java JOptionPane Info showInfo(Component owner, String msg)

Here you can find the source of showInfo(Component owner, String msg)

Description

Shows an info dialog

License

Open Source License

Parameter

Parameter Description
owner a parameter
msg a parameter

Declaration

public static void showInfo(Component owner, String msg) 

Method Source Code


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

Related

  1. inform(String message)
  2. information(String title, String message)
  3. mensajeInformacion(String mensaje, String titulo)
  4. showException(Component parent, Exception e, String info)
  5. showException(Component parent, Exception e, String info)
  6. showInfoBox(Component aParent, String aTitle, String aMessage)
  7. showInfoMessage(Component parent, String message)
  8. showInfoMessage(String message, Component component)
  9. showInformationBox(Component pParent, String pMessage, String pTitle)