-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
kestrel
-
generic, sparc
-
solaris_2.6, solaris_7
The 2D printing API has been enhanced in 1.3 so that transparent images can be rendered without treating the entire page as a raster. This has lead to huge improvements in quality, spool file size, and printing speed.
The mechansim for doing this is to reinvoke the print() method for the page to render just the area covered by the image into a BufferedImage. The reinvocation is recursive.
However, JavaHelp and any application that is using Swing does not support re-entrancy in its paint methods. A bug has been filed on Swing text/Views. In the case of JavaHelp code that worked on JDK1.2 no longer works on JDK1.3. Printing is often distorted or missing key elements.
The problem needs to be addressed otherwise legacy print code will fail when JDK1.3 ships.
The mechansim for doing this is to reinvoke the print() method for the page to render just the area covered by the image into a BufferedImage. The reinvocation is recursive.
However, JavaHelp and any application that is using Swing does not support re-entrancy in its paint methods. A bug has been filed on Swing text/Views. In the case of JavaHelp code that worked on JDK1.2 no longer works on JDK1.3. Printing is often distorted or missing key elements.
The problem needs to be addressed otherwise legacy print code will fail when JDK1.3 ships.
- duplicates
-
JDK-4299915 On printing HTML file with text and image, Text was printed multiple
-
- Closed
-
- relates to
-
JDK-4297688 2D printing: Solaris: Non transparent images are treated as transparent
-
- Resolved
-
-
JDK-4297683 Swing text/Views are not reentrant for paint
-
- Closed
-
-
JDK-4297687 2D printing API: Clip not set on graphic objects in print callbacks
-
- Resolved
-