Java JOptionPane Error showErrorMessage(String message, Component component)

Here you can find the source of showErrorMessage(String message, Component component)

Description

show Error Message

License

Apache License

Declaration

public static void showErrorMessage(String message, Component component) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Component;
import javax.swing.JOptionPane;

public class Main {
    public static void showErrorMessage(String message, Component component) {
        JOptionPane.showMessageDialog(component, message, "Error", JOptionPane.ERROR_MESSAGE);
    }//w w  w  .j a va 2s. co  m
}

Related

  1. showErrorMessage(Component theParent, String theMessage)
  2. showErrorMessage(final JComponent parent, final String message, final String title)
  3. showErrorMessage(final Window aParent, final String aMessage)
  4. showErrorMessage(JFrame frame, String msg)
  5. showErrorMessage(String message)
  6. showErrorMessage(String message, int errorCode)
  7. showErrorMessage(String msg)
  8. showErrorMessage(String title, String message, java.awt.Component parent)
  9. showErrorMsg(final Container parent, final String message)