Java JOptionPane Error showError(String errorMsg)

Here you can find the source of showError(String errorMsg)

Description

show Error

License

Open Source License

Declaration

public static void showError(String errorMsg) 

Method Source Code

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

import javax.swing.JOptionPane;
import javax.swing.JFrame;

public class Main {
    public static void showError(JFrame parent, String errorMsg) {
        JOptionPane.showMessageDialog(parent, errorMsg, "Error", JOptionPane.ERROR_MESSAGE);
    }// w  w w  .ja  v a2s .  c o  m

    public static void showError(String errorMsg) {
        showError(null, errorMsg);
    }
}

Related

  1. showError(Exception e)
  2. showError(final Component component, final String title, final String message)
  3. showError(final Component rootComponent, final String message, final String title)
  4. showError(JComponent parent, Throwable e)
  5. showError(JFrame owner, ImageIcon image, String title, String message, String text)
  6. showError(String macAddress, String message)
  7. showError(String message)
  8. showError(String message)
  9. showError(String msg, String title)