Here you can find the source of errMsg(final String msg)
Parameter | Description |
---|---|
msg | a parameter |
public static void errMsg(final String msg)
//package com.java2s; //License from project: Open Source License import javax.swing.JOptionPane; import javax.swing.SwingUtilities; public class Main { /**/*from w w w .ja v a 2s .co m*/ * Error message dialog * * @param msg */ public static void errMsg(final String msg) { // Show it in a message box SwingUtilities.invokeLater(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, msg, "Error", JOptionPane.ERROR_MESSAGE); System.out.println(msg); } }); } }