<Swing Dev>  RFR JDK-8210807:Printing a JTable with a JScrollPane prints table without rows populated
prasanta.sadhukhan at oracle.com
Mon Nov 12 11:36:02 UTC 2018
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:
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
8164032's manual regression testcase behaves in the same way before and
after this fix.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swing-dev