Java JOptionPane Message showAlert(String message)

Here you can find the source of showAlert(String message)

Description

Uses the JOptionPane.showMessageDialog() method to display the specified alert message.

License

Open Source License

Parameter

Parameter Description
message The message to display.

Declaration

public static void showAlert(String message) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    /** Uses the JOptionPane.showMessageDialog() method to display the
      specified alert message./*from w  w w. j a  v  a 2 s.  c o  m*/
      @param message The message to display.
      */
    public static void showAlert(String message) {
        JOptionPane.showMessageDialog(null, message, "JFMI Alert", JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. queryInt(String message, int initialValue)
  2. requestPassword(String titulo, String msg)
  3. select(String[] selList, String msg)
  4. show(String title, int type, Object message, Object[] options, Object initialOption)
  5. showActionFailedWithExceptionMessage(final Component parent, final Exception ex)
  6. showException(Component c, String message, Throwable t)
  7. showException(String message, Exception ex)
  8. showExceptionMessage(Component parent, Throwable t)
  9. showExceptionMessage(Component parentComponent, Exception exception)