Java JOptionPane Error showError(Component where, String msg)

Here you can find the source of showError(Component where, String msg)

Description

show Error

License

Open Source License

Declaration

public static void showError(Component where, String msg) 

Method Source Code


//package com.java2s;
import javax.swing.*;
import java.awt.*;

public class Main {
    public static void showError(Component where, String msg) {
        JOptionPane.showMessageDialog(where, msg, "Error", JOptionPane.ERROR_MESSAGE);
    }//  w  w w. j  av  a2 s.  c om
}

Related

  1. showError(Component component, String title, String message)
  2. showError(Component father, String title, String content)
  3. showError(Component parent, String message)
  4. showError(Component parent, String message)
  5. showError(Component parentComponent, Exception e)
  6. showError(Exception e)
  7. showError(Exception e)
  8. showError(Exception e)
  9. showError(final Component component, final String title, final String message)