Java JOptionPane Error showError(String message)

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

Description

show Error

License

Open Source License

Declaration

public static void showError(String message) 

Method Source Code

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

import javax.swing.JDialog;
import javax.swing.JOptionPane;

public class Main {
    public static void showError(String message) {
        //custom title, error icon
        JOptionPane.showMessageDialog(new JDialog(), message, "Error", JOptionPane.ERROR_MESSAGE);
    }/*from www  .  j a  v  a 2  s.  c  o  m*/
}

Related

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