|
I'm maintaining this page for saving myself time in the future
in case I ever run into this (these) problems again: The printAll method in the Component seems to contain a bug in JDK1.2.2 on Windows. The program FrameCopy.java is the evidence. All it tries to do is from an original initial frame containing a button (that says Copy) is get a Snapshot of this entire frame and popup a new Frame painted using the Snapshot image...basically, a ScreenShot! Compiled and Running using JDK1.2.2 on Windows will throw some exceptions in sun.awt.windows.WComponentPeer.print etc... Compiled and running using JDK1.1.8 works fine. http://java.sun.com/products/jdk/faq/faq-sun-packages.html |