RFR: 8210807: Printing a JTable with a JScrollPane prints table without rows populated [v8]
Tejesh R
tr at openjdk.org
Fri Nov 10 09:14:25 UTC 2023
> `BackingStore` uses its own Graphics to Paint the Image. This is fine when we want to paint it on a Window/Frame, but fails to print. Since `WPathGraphics` is used for Printing, backing store fails to print it and backing store uses newly created `SunGraphics2D` always. The proposed fix is to ignore `backingstore` graphics if passed on Graphics is different from `SunGraphics2D` which ensures the Image is painted on Window and also printed when required.
> The fix is tested in CI and doesn't cause any regression. The test is verified manually.
Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
Review fix
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16552/files
- new: https://git.openjdk.org/jdk/pull/16552/files/cac0c620..8111eaa8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16552&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16552&range=06-07
Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/16552.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16552/head:pull/16552
PR: https://git.openjdk.org/jdk/pull/16552
More information about the client-libs-dev
mailing list