Java JOptionPane Error error(Exception ex)

Here you can find the source of error(Exception ex)

Description

error

License

Open Source License

Declaration

public static void error(Exception ex) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    public static void error(Exception ex) {

        ex.printStackTrace(System.err);
        JOptionPane.showMessageDialog(null, "" + ex.getClass().getSimpleName() + ": " + ex.getMessage());
    }/* w  w w .j a va2  s .com*/
}

Related

  1. errMsg(String msg)
  2. error(Component comp, String title, String message, Object[] args)
  3. error(Component parent, Exception e)
  4. error(Component parent, String message)
  5. error(Component parent, String message)
  6. error(final Component component, final Object msg)
  7. error(String message, Component parent)
  8. error(String message, String title)
  9. errorMessage(Component component, String title, String message)