eDlg.pack(); eDlg.validate();
eDlg.invalidate();
    public static void showExceptionDialog(Frame owner, String title, String message, Exception exc) {        ExceptionDialog eDlg = new ExceptionDialog(owner, title, message, exc);        eDlg.setVisible(true);        eDlg.pack();        eDlg.validate();    }