Here you can find the source of displayError(Exception e, JFrame jFrame)
Parameter | Description |
---|---|
e | Exception who's StackTrace/message is to be displayed |
public static void displayError(Exception e, JFrame jFrame)
//package com.java2s; //License from project: Open Source License import javax.swing.JFrame; import javax.swing.JOptionPane; public class Main { public static final boolean DEBUG = false; /**//from w ww. ja v a 2 s . c o m * * @param e Exception who's StackTrace/message is to be displayed */ public static void displayError(Exception e, JFrame jFrame) { if (DEBUG) { e.printStackTrace(); } else { JOptionPane.showMessageDialog(jFrame, "Error Occurred: " + e.getMessage()); } } }