Java JOptionPane Error showBlockedErrorMsg(final Container parent, final String message, final boolean exit)

Here you can find the source of showBlockedErrorMsg(final Container parent, final String message, final boolean exit)

Description

show Blocked Error Msg

License

Apache License

Declaration

public static void showBlockedErrorMsg(final Container parent, final String message, final boolean exit)
            throws HeadlessException 

Method Source Code

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

import java.awt.Container;

import java.awt.HeadlessException;

import javax.swing.JOptionPane;

import javax.swing.UIManager;

public class Main {
    public static void showBlockedErrorMsg(final Container parent, final String message, final boolean exit)
            throws HeadlessException {
        JOptionPane.showMessageDialog(parent, message, UIManager.getString("OptionPane.messageDialogTitle"),
                JOptionPane.ERROR_MESSAGE);
        if (exit) {
            System.exit(-1);/*  w w w .j av a  2  s  .c o m*/
        }
    }
}

Related

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