Java JOptionPane Message displayMessagePane(String desc, String title)

Here you can find the source of displayMessagePane(String desc, String title)

Description

This function displays the JOptionPane with title and descritpion

License

Open Source License

Parameter

Parameter Description
desc thedescription you want to display on option pane
title the tile you want to display on option pane

Declaration

public static void displayMessagePane(String desc, String title) 

Method Source Code

//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);
    }
}

Related

  1. displayInputMessage(String title, String message, String defaultInput)
  2. displayInputMessage(String title, String message, String defaultInput)
  3. displayMessage(Component parent, String string, String title)
  4. displayMessage(Component parentComponent, String message, String windowTitle, int messageType)
  5. displayMessage(String message)
  6. excMsg(String msg, Exception ex)
  7. excMsg(String msg, Exception ex)
  8. excMsg(String msg, Throwable t)
  9. exibeMsg(String msg, int tipoMsg)