Name: sg39081 Date: 09/15/97 When the problem is from the OS, not from Java, wrap the message inside a nice window so the user won't panic before a console full of cryptic exceptions, and he or she will be able to correct the problem. I thought I had a java bug concerning printing problems, I had received the following exception while trying to call a printjob : Exception occurred during event dispatching: java.lang.InternalError: printing STARTDOC failed at sun.awt.windows.WGraphics.createFromPrintJob(Native Method) at sun.awt.windows.WGraphics.<init>(WGraphics.java:95) at sun.awt.windows.WPrintGraphics.<init>(WPrintGraphics.java:43) at sun.awt.windows.WPrintJob.initJob(WPrintJob.java:58) at sun.awt.windows.WToolkit.getPrintJob(WToolkit.java:341) Apparently, this was not a bug The problem appears to be that winnt cannot print, either. After trying to print from the java program, I tried to print with netscape and received an error window saying "Cannot print due to a printer misconfiguration or lack of memory" or something like that. So I assume that the problem with java was the same, only much less nicely presented and managed. ======================================================================
|