Here you can find the source of displayMessagePane(String desc, String title)
Parameter | Description |
---|---|
desc | thedescription you want to display on option pane |
title | the tile you want to display on option pane |
public static void displayMessagePane(String desc, String title)
//package com.java2s; //License from project: Open Source License import javax.swing.JOptionPane; public class Main { /**/*from w ww. j a va2s . c om*/ * This function displays the JOptionPane with title and descritpion * * @param desc thedescription you want to display on option pane * @param title the tile you want to display on option pane */ public static void displayMessagePane(String desc, String title) { if (title == null) title = "Message Dialog"; JOptionPane.showMessageDialog(null, desc, title, JOptionPane.PLAIN_MESSAGE); } }