Java JOptionPane Error printErrorMessageAndExit(String message)

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

Description

print Error Message And Exit

License

BSD License

Declaration

public static void printErrorMessageAndExit(String message) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    public static void printErrorMessageAndExit(String message) {
        JOptionPane.showMessageDialog(null, message);
        System.exit(1);//  w w  w  .  j  av a2  s . c  o m
    }
}

Related

  1. exibeMsgErro(String msg)
  2. getIconError()
  3. guiError(String errormsg, String errortitle)
  4. logErrorMessage(String msg)
  5. popupError(String s, Throwable e)
  6. showAudioNotAvailableError(String macId)
  7. showBlockedErrorMsg(final Container parent, final String message, final boolean exit)
  8. showError(Component component, String title, String message)
  9. showError(Component father, String title, String content)