From: Simon F. <sim...@us...> - 2005-03-17 05:01:59
|
Update of /cvsroot/jcrypt/JCrypt/cs199mbc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24488/cs199mbc Modified Files: JCryptMain.java CryptReflector.java Log Message: Added dialog starters to all caught exceptions Index: CryptReflector.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/CryptReflector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CryptReflector.java 16 Mar 2005 07:46:17 -0000 1.4 --- CryptReflector.java 17 Mar 2005 05:01:46 -0000 1.5 *************** *** 275,280 **** myMachine = (CryptPlugin) cl.newInstance(); } catch (Exception e) { ! // TODO: Turn into dialog ! e.printStackTrace(); return; } --- 275,283 ---- myMachine = (CryptPlugin) cl.newInstance(); } catch (Exception e) { ! JOptionPane ! .showMessageDialog( ! frm, ! "There was a problem starting the plugin. Please contact the developer.", ! "Fatal Error", JOptionPane.ERROR_MESSAGE); return; } Index: JCryptMain.java =================================================================== RCS file: /cvsroot/jcrypt/JCrypt/cs199mbc/JCryptMain.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JCryptMain.java 15 Mar 2005 00:27:57 -0000 1.2 --- JCryptMain.java 17 Mar 2005 05:01:45 -0000 1.3 *************** *** 42,47 **** .getSystemLookAndFeelClassName()); } catch (Exception exception) { ! // TODO: Turn into dialog ! exception.printStackTrace(); } --- 42,51 ---- .getSystemLookAndFeelClassName()); } catch (Exception exception) { ! JOptionPane ! .showMessageDialog( ! null, ! "Could not start the application! Make sure that you installed the program correctly.", ! "Fatal Error (PEBKAC)", ! JOptionPane.ERROR_MESSAGE); } |