Java JOptionPane Message showMessage(Component item, String title)

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

Description

Shows a message in an Option Panel.

License

Open Source License

Parameter

Parameter Description
item - <i>Component</i> - The Component to show.
title - <i>String</i> - The title of the dialog.

Declaration

public static void showMessage(Component item, String title) 

Method Source Code


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

import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {
    /** Shows a message in an Option Panel.
     * //from  ww  w.  j  a  va 2s .c o  m
     * @param item
     *            - <i>Component</i> - The Component to show.
     * @param title
     *            - <i>String</i> - The title of the dialog. */
    public static void showMessage(Component item, String title) {
        JOptionPane.showMessageDialog(null, item, title, JOptionPane.PLAIN_MESSAGE);
    }
}

Related

  1. showInvalidJarPathMessage(String jarPath)
  2. showLog(int type, String title, String message)
  3. showMessage(Component c, String message, String title)
  4. showMessage(Component c, String msg)
  5. showMessage(Component component, String message)
  6. showMessage(Component parent, String message, int messageType)
  7. showMessage(Component parent, String msg, String title, int flags)
  8. showMessage(Component parentComponent, String title, String message, int messageType)
  9. showMessage(final Component rootComponent, final String message, final String title)