public static void showQuickErrorDialog(JFrame parent, String title, Exception e) {
// create and configure a text area - fill it with exception text.
final JPanel pan = new JPanel(), details = new JPanel();
final CardLayout crd = new CardLayout();
pan.setLayout(crd);
final JTextArea textArea = new JTextArea();
textArea.setFont(new Font("Sans-Serif", Font.PLAIN, 10));
textArea.setEditable(false);
StringWriter writer = new StringWriter();
e.printStackTrace(new PrintWriter(writer));
textArea.setText(writer.toString());
JLabel lab = new JLabel(e.getMessage());
JButton flip = new JButton(Globals.lang("Details"));
FormLayout layout = new FormLayout("left:pref", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);