Java JOptionPane Info info(Component parent, String message)

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

Description

info

License

Open Source License

Declaration

public static void info(Component parent, String message) 

Method Source Code


//package com.java2s;
/*//from   w w w  .  j a  v a2 s .  c  o m
 * @(#)Util.java
 * 
 * Created on 2005. 12. 15
 *
 *   This software is the confidential and proprietary informatioon of
 *   POSTECH DP&NM. ("Confidential Information"). You shall not
 *   disclose such Confidential Information and shall use it only in
 *   accordance with the terms of the license agreement you entered into
 *   with Eric Kang.
 *
 *   Contact: Eric Kang at eliot@postech.edu
 */

import javax.swing.*;
import java.awt.*;

public class Main {
    public static void info(Component parent, String message) {
        JOptionPane.showMessageDialog(parent, message, "Info", JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. displayInformation(String strMsg)
  2. displayInformationMessage(Component parentComponent, String message, String windowTitle)
  3. flashInfoMessage(final Component sourceComponent, final String message, int durationInMilliSecs)
  4. getIconInformation()
  5. info(Component component, String title, String msg)
  6. info(Component parent, String message)
  7. info(String message, Component parent)
  8. infoBox(String message, String title)
  9. infoMessage(Component owner, String title, String message, ModalityType modalityType)