Java JOptionPane Error errMsg(String msg)

Here you can find the source of errMsg(String msg)

Description

Error message dialog

License

Open Source License

Parameter

Parameter Description
msg a parameter

Declaration

public static void errMsg(String msg) 

Method Source Code

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

import javax.swing.JOptionPane;

public class Main {
    /**// w w  w  .ja  v  a2  s  . c o m
     * Error message dialog
     * 
     * @param msg
     */
    public static void errMsg(String msg) {
        // Show it in a message box
        JOptionPane.showMessageDialog(null, msg, "Error", JOptionPane.ERROR_MESSAGE);
        System.out.println(msg);
    }
}

Related

  1. displayErrorMessage(String msg, Throwable t)
  2. displayErrors(Component parent, List errors)
  3. errMsg(Component owner, String msg, Exception e)
  4. errMsg(final Component owner, final String msg, final Throwable e)
  5. errMsg(final String msg)
  6. error(Component comp, String title, String message, Object[] args)
  7. error(Component parent, Exception e)
  8. error(Component parent, String message)
  9. error(Component parent, String message)