Java JOptionPane Message showMessage(Component c, String message, String title)

Here you can find the source of showMessage(Component c, String message, String title)

Description

Utility method to display a popup with the provided message and title

License

Open Source License

Parameter

Parameter Description
c The parent component of the message popup
message The message to display on the popup
title The title to display on the popup

Declaration

public static void showMessage(Component c, String message, String title) 

Method Source Code

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

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

public class Main {
    /**//from  w  ww  . j  ava2s  .  com
     * Utility method to display a popup with the provided message and title
     * @param c The parent component of the message popup
     * @param message The message to display on the popup
     * @param title The title to display on the popup
     */
    public static void showMessage(Component c, String message, String title) {
        JOptionPane.showMessageDialog(c, message, title, JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. showInput(Component parent, String message, String initValue)
  2. showInput(String message)
  3. showInputInteger(String message)
  4. showInvalidJarPathMessage(String jarPath)
  5. showLog(int type, String title, String message)
  6. showMessage(Component c, String msg)
  7. showMessage(Component component, String message)
  8. showMessage(Component item, String title)
  9. showMessage(Component parent, String message, int messageType)