On Fri, 25 Feb 2022 22:26:30 GMT, Phil Race <p...@openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   8236907: JTable added to nested panels does not paint last
>
> src/java.desktop/share/classes/javax/swing/TablePrintable.java line 400:
> 
>> 398:         Rectangle bounds = table.getBounds();
>> 399:         bounds.x = bounds.y = 0;
>> 400: 
> 
> why was the x=0, y=0 necessary ? And if it wasn't (0,0) already that is a 
> significant change

It was (0,20) before which would make minRow as 1 instead of 0. If v see the 
computations in BasicTableUI it minRow will be 0 and maxRow will be max-1, 
hence in order the match both I had to make it (0,0), similar to BasicTableUI.

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

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

Reply via email to