this looks like it might be a jvm bug. Or my system is messed up somehow. I get the same null pointer exception when I use verbatim sample code from the java.sun.com website ( http://java.sun.com/j2se/1.3/docs/guide/awt/designspec/printing.html ) .. although the suspicious part of that link is that it's all the way back to java 1.3, so, may be failing if it's no longer correct code for java6.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
tried it on an old 32 bit system and the print dialog comes up without exception, so it's either a 64 bit jvm bug, or, my system is messed.. would be good for someone else with a 64 bit system to give it a try and see what happens.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
stack trace of the exception
this looks like it might be a jvm bug. Or my system is messed up somehow. I get the same null pointer exception when I use verbatim sample code from the java.sun.com website ( http://java.sun.com/j2se/1.3/docs/guide/awt/designspec/printing.html ) .. although the suspicious part of that link is that it's all the way back to java 1.3, so, may be failing if it's no longer correct code for java6.
tried it on an old 32 bit system and the print dialog comes up without exception, so it's either a 64 bit jvm bug, or, my system is messed.. would be good for someone else with a 64 bit system to give it a try and see what happens.