Java JOptionPane Message showMessage(String msg)

Here you can find the source of showMessage(String msg)

Description

show Message

License

Open Source License

Declaration

public static void showMessage(String msg) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    public static void showMessage(String msg) {
        showMessage(new String[] { msg });
    }//www. jav  a2s . c om

    public static void showMessage(String[] msg) {
        showMessage("Information", msg);
    }

    public static void showMessage(String title, String msg) {
        showMessage(title, new String[] { msg });
    }

    public static void showMessage(String title, String[] msg) {
        JOptionPane.showMessageDialog(null, msg, title, JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. showMessage(String message, String title)
  2. showMessage(String message, String title)
  3. showMessage(String msg)
  4. showMessage(String msg)
  5. showMessage(String msg)
  6. showMessage(String title, String message)
  7. showMessage(String title, String message, java.awt.Component parent)
  8. showMessageInEventQueue(final String message, final String title)
  9. showMessages(Component parent, List messages)