A working demo of ExceptionExamples would appear below, but it violates the security restrictions for applets because it works with files by redirecting standard error messages to a JTextArea. Thus to see how it runs you must download the java files and create an eclipse project. Eclipse will allow you to run this as an applet, though most appletviewers, and in particular web browsers, will not. Generally you would rewrite this as an application to get this to run most places. See ShortWordsFixedFiles for an example of how to do this.
Click below to download the source files for ExceptionExamples.