RFR: JDK-8016524: [macosx] Bottom line is not visible for JTableHeader [v4]

Sergey Bylokhov serb at openjdk.java.net
Tue Feb 1 02:47:04 UTC 2022


On Mon, 31 Jan 2022 19:44:51 GMT, Harshitha Onkar <duke at openjdk.java.net> wrote:

>> A new test case was added to test the fix as there was no corresponding test case present for this issue previously.
>
> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   tagged test case as mac only

src/java.desktop/macosx/classes/com/apple/laf/AquaTableHeaderBorder.java line 108:

> 106:         final int newHeight = height;
> 107: 
> 108:         painter.paint(g, c, newX - 1, newY - 1, newWidth + 1, newHeight + 1);

I would like to clarify the change here, what is the coordinates/size passed here is it a size of the component+border, or just a size of the component? So if decrease the newX/Y will we draw in the component area, or accidentally draw outside?

-------------

PR: https://git.openjdk.java.net/jdk/pull/7219



More information about the client-libs-dev mailing list