Java JOptionPane Info infoBox(String message, String title)

Here you can find the source of infoBox(String message, String title)

Description

This method will display an informational message box to the user

License

Open Source License

Parameter

Parameter Description
message message of box
title title of box

Declaration

public static void infoBox(String message, String title) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.swing.*;

public class Main {
    /**// w w  w.j  a  v  a 2 s  .com
     * This method will display an informational
     * message box to the user
     *
     * @param message message of box
     * @param title   title of box
     */
    public static void infoBox(String message, String title) {
        JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);

    }
}

Related

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