Integrated: 8210807: Printing a JTable with a JScrollPane prints table without rows populated
Tejesh R
tr at openjdk.org
Tue Nov 14 09:55:42 UTC 2023
On Wed, 8 Nov 2023 07:32:52 GMT, Tejesh R <tr at openjdk.org> wrote:
> `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.
This pull request has now been integrated.
Changeset: 95bd92a5
Author: Tejesh R <tr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/95bd92a5601afdf02b9d62cab7dbae93f297df47
Stats: 195 lines in 3 files changed: 189 ins; 0 del; 6 mod
8210807: Printing a JTable with a JScrollPane prints table without rows populated
Reviewed-by: psadhukhan, abhiscxk
-------------
PR: https://git.openjdk.org/jdk/pull/16552
More information about the client-libs-dev
mailing list