Java JOptionPane Error showErrorMessage(Component parent, String str)

Here you can find the source of showErrorMessage(Component parent, String str)

Description

Show error message.

License

Open Source License

Declaration

public static void showErrorMessage(Component parent, String str) 

Method Source Code

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

import java.awt.*;
import javax.swing.*;

public class Main {
    /**//from www  .  j av  a 2 s.  c  o m
     * Show error message.
     */
    public static void showErrorMessage(Component parent, String str) {
        JOptionPane.showMessageDialog(parent, str, "Error!",
                JOptionPane.ERROR_MESSAGE);
    }
}

Related

  1. showErrorBox(Component pParent, String pMessage, String pTitle)
  2. showErrorConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
  3. showErrorDialog(JFrame parent, Exception ex)
  4. showErrorMessage(Component c, Exception e)
  5. showErrorMessage(Component parent, String message)
  6. showErrorMessage(Component parent, String str)
  7. showErrorMessage(Component parent, Throwable error)
  8. showErrorMessage(Component parentComponent, String message, String title)
  9. showErrorMessage(Component theParent, String theMessage)