Here you can find the source of inform(String dlgTitle, String info, Component parent)
Parameter | Description |
---|---|
dlgTitle | -- the title of the message window |
info | -- the message to show |
parent | -- the parent component |
static public void inform(String dlgTitle, String info, Component parent)
//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 } }