Here you can find the source of showMessage(Component c, String message, String title)
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 |
public static void showMessage(Component c, String message, String title)
//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); } }