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

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Mon Feb 14 04:51:12 UTC 2022


On Fri, 11 Feb 2022 18:31:56 GMT, Harshitha Onkar <duke at openjdk.java.net> wrote:

>> Previously, the JTableHeader Bottom line wasn't visible on MacOS LAF (Aqua). With the fix the bottom line (light grey) is visible. 
>> 
>> Changes were made to AquaTableHeaderBorder.paintBorder method and the height of the component+border was adjusted in paint method.
>> 
>> A new test case (JTHeaderBorderTest.java) was added to test the fix as there was no corresponding test case present for this issue previously. The test checks if the border is visible by checking the color at the border location with the background color of the table and table-header, if both are different test case passes and it fails if the pixel color at border location matches either the table-header or table background color.
>
> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revised test case - changed string to int comparison, expanded imports

Marked as reviewed by psadhukhan (Reviewer).

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

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



More information about the client-libs-dev mailing list