Java JOptionPane Error showPrettyErrorPane(Component caller, String msg)

Here you can find the source of showPrettyErrorPane(Component caller, String msg)

Description

show Pretty Error Pane

License

Open Source License

Declaration

public static void showPrettyErrorPane(Component caller, String msg) 

Method Source Code

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

import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {
    public static void showPrettyErrorPane(Component caller, String msg) {
        JOptionPane.showMessageDialog(caller,
                "<html><body><p style='width: 200px;'>" + msg
                        + "</p></body></html>", "Error",
                JOptionPane.ERROR_MESSAGE);
    }/*from w  w w  . jav  a2 s . c  o  m*/
}

Related

  1. showErrorMessage(String title, String message, java.awt.Component parent)
  2. showErrorMsg(final Container parent, final String message)
  3. showErrorPane(String errorMessage, Exception e)
  4. showErrorPanel(Component parent, String aS, Icon icon)
  5. showNoMacFoundError()
  6. showSettopLockError(String macAddress)
  7. simpleError(Exception e, Component parent)