Hi All,

Please review a fix for an issue where it is seen that a simple JTable doesn't print correctly if the table is contained in a JScrollPane. This is a regression of the fixJDK-8164032: <https://bugs.openjdk.java.net/browse/JDK-8164032>JViewport backing store image is not scaled on HiDPI display
where JViewport's backing store image is scaled in the fix.
It seems this scaling of backing store image is not needed for printing as the original backing store image or base image was printed correctly before this fix. Proposed fix is to check if the graphics object is been used for printing ie PeekGraphics/pathGraphics then skip this backing store image scaling.

Bug: https://bugs.openjdk.java.net/browse/JDK-8210807
webrev: http://cr.openjdk.java.net/~psadhukhan/8210807/webrev.0/

8164032's manual regression testcase behaves in the same way before and after this fix.

Regards
Prasanta

Reply via email to