Java JFrame Parent showSignatureUpdateErrorDialog(Frame parent, Throwable e)

Here you can find the source of showSignatureUpdateErrorDialog(Frame parent, Throwable e)

Description

Shows an error message dialog.

License

Open Source License

Parameter

Parameter Description
parent the parent
e the exception that caused the message

Declaration

public static void showSignatureUpdateErrorDialog(Frame parent, Throwable e) 

Method Source Code


//package com.java2s;
import java.awt.Frame;

import javax.swing.JOptionPane;

public class Main {
    /** *//*  w  w w  .j  av  a  2 s  . c o  m*/
    private static final String SIGNATURE_UPDATE = "Signature update";

    /**
     * Shows an error message dialog.
     * @param parent the parent
     * @param e the exception that caused the message
     */
    public static void showSignatureUpdateErrorDialog(Frame parent, Throwable e) {
        JOptionPane.showMessageDialog(parent, e.getLocalizedMessage(), SIGNATURE_UPDATE, JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. showDialog(Frame parent, String title, JComponent c)
  2. showDoneDialog(Frame parent, String title, JComponent c)
  3. showGeneralErrorDialog(Frame parent, String title, String message)
  4. showInfoDialog(final Frame parent, final String msg)
  5. showNothingIsSelectedForRemoveDialog(Frame parent)