Integrated: 8311031: JTable header border vertical lines are not aligned with data grid lines
Tejesh R
tr at openjdk.org
Thu Aug 3 04:47:48 UTC 2023
On Tue, 4 Jul 2023 11:01:27 GMT, Tejesh R <tr at openjdk.org> wrote:
> The header border uses `g.drawLine` whereas the JTable data grid lines uses `SwingUtilities2.drawVLine` and `SwingUtilities2.drawHLine` to draw horizontal and vertical lines. The SwingUtilities2 uses `Graphics.fillRect` which contributes to the difference between the position of these two lines which happens/visible at higher ui scaling (difference in alignment between vertical lines of these two). The fix propose to use the same methods for metal L&F of JTable header border paint.
> CI testing shows green.
>
> 
This pull request has now been integrated.
Changeset: 87d7e976
Author: Tejesh R <tr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/87d7e976cbb9a4441f6f215252383b41b2b69f97
Stats: 112 lines in 2 files changed: 108 ins; 0 del; 4 mod
8311031: JTable header border vertical lines are not aligned with data grid lines
Reviewed-by: abhiscxk, psadhukhan, aivanov
-------------
PR: https://git.openjdk.org/jdk/pull/14766
More information about the client-libs-dev
mailing list