Java JOptionPane Message showMessage(Object message)

Here you can find the source of showMessage(Object message)

Description

show Message

License

Open Source License

Declaration

public static void showMessage(Object message) 

Method Source Code

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

import javax.swing.JDialog;

import javax.swing.JOptionPane;

public class Main {
    public static void showMessage(Object message) {
        JOptionPane pane = new JOptionPane(message, JOptionPane.WARNING_MESSAGE);
        JDialog dialog2 = pane.createDialog(null, "Message");
        dialog2.setAlwaysOnTop(true);//from w w  w .ja v a 2s  .  c  o  m
        dialog2.setVisible(true);
    }
}

Related

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