Here you can find the source of showExceptionMessage(Exception e)
public static boolean showExceptionMessage(Exception e)
//package com.java2s; //License from project: LGPL import javax.swing.JDialog; import javax.swing.JOptionPane; import javax.swing.UIManager; public class Main { public static boolean showExceptionMessage(Exception e) { try {/*from ww w. ja v a 2s . c om*/ UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception el) { JOptionPane.showMessageDialog(new JDialog(), e.getMessage()); el.printStackTrace(); } JOptionPane.showMessageDialog(new JDialog(), e.getMessage()); e.printStackTrace(); return false; } }