On Wed, 22 Jul 2026 14:50:21 GMT, Alexey Ivanov <[email protected]> wrote:

>> Jyothilekshmi has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   8364404: PanelRepaint.java should not be resizable
>
> test/jdk/java/awt/Panel/PanelRepaint/PanelRepaint.java line 73:
> 
>> 71:         Frame f = new Frame("Panel Repaint Test");
>> 72:         f.setLayout(new FlowLayout());
>> 73:         f.setSize(620, 288);
> 
> This `setSize` relies on size of frame insets which include the system window 
> decorations. To ensure the frame fits the `PanelRepaint pr` fully, you should 
> calculate the size of the frame by combining the size of the panel and the 
> insets of the frame.

I rechecked the current hard-coded frame size with setResizable(false), and it 
looks fine. I do not see the scrollable panel contents showing below the 
horizontal scrollbar

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

PR Review Comment: https://git.openjdk.org/jdk/pull/31687#discussion_r3635956659

Reply via email to