Java JOptionPane Error showErrorMessage(String message, int errorCode)

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

Description

show Error Message

License

Open Source License

Declaration

public static void showErrorMessage(String message, int errorCode) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    public static void showErrorMessage(String message, int errorCode) {
        JOptionPane.showMessageDialog(null, message + "\naaaa\naaaa\naaaa", "Fatal error",
                JOptionPane.ERROR_MESSAGE);
        //System.out.println("aaa");
        //System.exit(errorCode);
    }/*  w  w w . j  a va2  s  . c  o m*/
}

Related

  1. showErrorMessage(final JComponent parent, final String message, final String title)
  2. showErrorMessage(final Window aParent, final String aMessage)
  3. showErrorMessage(JFrame frame, String msg)
  4. showErrorMessage(String message)
  5. showErrorMessage(String message, Component component)
  6. showErrorMessage(String msg)
  7. showErrorMessage(String title, String message, java.awt.Component parent)
  8. showErrorMsg(final Container parent, final String message)
  9. showErrorPane(String errorMessage, Exception e)