Here you can find the source of errorMessage(Exception exceptionMsg, boolean quiet)
public static void errorMessage(Exception exceptionMsg, boolean quiet)
//package com.java2s; import javax.swing.JOptionPane; public class Main { protected static String messagerHeader = "Database Manager Swing Error"; protected static void errorMessage(String errorMessage) { /**//from ww w . j a va 2 s . c om * Display Jpanel Error messages any text Errors. Overloads * errorMessage(Exception exceptionMsg) */ Object[] options = { "OK" }; JOptionPane.showOptionDialog(null, errorMessage, messagerHeader, JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]); // DatabaseManagerSwing.StatusMessage(READY_STATUS); } public static void errorMessage(Exception exceptionMsg) { errorMessage(exceptionMsg, false); } public static void errorMessage(Exception exceptionMsg, boolean quiet) { /** * Display Jpanel Error messages any SQL Errors. Overloads * errorMessage(String e) */ Object[] options = { "OK", }; JOptionPane.showOptionDialog(null, exceptionMsg, messagerHeader, JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, options, options[0]); if (!quiet) { exceptionMsg.printStackTrace(); } // DatabaseManagerSwing.StatusMessage(READY_STATUS); } }