Java JOptionPane Message showMessage(final String msg, Component parent)

Here you can find the source of showMessage(final String msg, Component parent)

Description

show Message

License

BSD License

Declaration

public static void showMessage(final String msg, Component parent) 

Method Source Code


//package com.java2s;
// LICENSE:      This file is distributed under the BSD license.

import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {
    public static void showMessage(final String msg) {
        JOptionPane.showMessageDialog(null, msg);
    }//from w ww .j a v a  2 s  . co m

    public static void showMessage(final String msg, Component parent) {
        JOptionPane.showMessageDialog(parent, msg);
    }
}

Related

  1. showMessage(Component parent, String msg, String title, int flags)
  2. showMessage(Component parentComponent, String title, String message, int messageType)
  3. showMessage(final Component rootComponent, final String message, final String title)
  4. showMessage(final String message)
  5. showMessage(final String message)
  6. showMessage(final Window aParent, final String aMessage)
  7. showMessage(final Window parent, final String message, final String title, final int messageType)
  8. showMessage(Object message)
  9. showMessage(String message)