Java JOptionPane Info inform(String dlgTitle, String info, Component parent)

Here you can find the source of inform(String dlgTitle, String info, Component parent)

Description

Show a text message dialog.

License

Open Source License

Parameter

Parameter Description
dlgTitle -- the title of the message window
info -- the message to show
parent -- the parent component

Declaration

static public void inform(String dlgTitle, String info, Component parent) 

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  .jav  a2s.  co m*/
     * Show a text message dialog.
     * 
     * @param dlgTitle -- the title of the message window
     * @param info -- the message to show
     * @param parent -- the parent component
     */
    static public void inform(String dlgTitle, String info, Component parent) {
        JOptionPane.showMessageDialog(parent, info, dlgTitle, JOptionPane.INFORMATION_MESSAGE, null);//icon
    }
}

Related

  1. info(String message, Component parent)
  2. infoBox(String message, String title)
  3. infoMessage(Component owner, String title, String message, ModalityType modalityType)
  4. infoMsg(final String msg)
  5. infoMsg(String msg)
  6. inform(String message)
  7. information(String title, String message)
  8. mensajeInformacion(String mensaje, String titulo)
  9. showException(Component parent, Exception e, String info)