Java JFrame Parent showGeneralErrorDialog(Frame parent, String title, String message)

Here you can find the source of showGeneralErrorDialog(Frame parent, String title, String message)

Description

Shows an error message dialog.

License

Open Source License

Parameter

Parameter Description
parent the parent
title the error dialog title
message the message

Declaration

public static void showGeneralErrorDialog(Frame parent, String title, String message) 

Method Source Code


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

import javax.swing.JOptionPane;

public class Main {
    /**//from  w ww  .  ja  v a 2 s  . co  m
     * Shows an error message dialog.
     * @param parent the parent
     * @param title the error dialog title
     * @param message the message
     */
    public static void showGeneralErrorDialog(Frame parent, String title, String message) {
        JOptionPane.showMessageDialog(parent, message, title, JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. runProgressDialog(Runnable runnable, Frame parentFrame, String title, int count)
  2. setFrameParentTitle(Container c, String s)
  3. showDialog(Frame aParent, String aMsg, String aTitle, int aType)
  4. showDialog(Frame parent, String title, JComponent c)
  5. showDoneDialog(Frame parent, String title, JComponent c)
  6. showInfoDialog(final Frame parent, final String msg)
  7. showNothingIsSelectedForRemoveDialog(Frame parent)
  8. showSignatureUpdateErrorDialog(Frame parent, Throwable e)