Java JOptionPane Error showErrorMessage(String message)

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

Description

show Error Message

License

Apache License

Declaration

static void showErrorMessage(String message) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.JOptionPane;

public class Main {
    static void showErrorMessage(String message) {
        showErrorMessage(message, "Error");
    }//  w  w  w  .j ava  2s  .  com

    static void showErrorMessage(String message, String title) {
        JOptionPane.showMessageDialog(null, message, title, JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. showErrorMessage(Component parentComponent, String message, String title)
  2. showErrorMessage(Component theParent, String theMessage)
  3. showErrorMessage(final JComponent parent, final String message, final String title)
  4. showErrorMessage(final Window aParent, final String aMessage)
  5. showErrorMessage(JFrame frame, String msg)
  6. showErrorMessage(String message, Component component)
  7. showErrorMessage(String message, int errorCode)
  8. showErrorMessage(String msg)
  9. showErrorMessage(String title, String message, java.awt.Component parent)