Here you can find the source of showMessage(Component item, String title)
Parameter | Description |
---|---|
item | - <i>Component</i> - The Component to show. |
title | - <i>String</i> - The title of the dialog. |
public static void showMessage(Component item, String title)
//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); } }