RFR: 8365643: JShell EditPad out of bounds on Windows [v2]

David Alayachew duke at openjdk.org
Mon Aug 18 19:45:13 UTC 2025


On Mon, 18 Aug 2025 19:17:38 GMT, David Alayachew <duke at openjdk.org> wrote:

>> When calling the `setLocationRelativeTo()` method, a null parameter means that it centers the window in the screen. However, any subsequent resizing operations will change only the size, not the location of the window. Understandable, but now the window is no longer centered. So, changing the order of operations.
>
> David Alayachew has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into patch-1
>  - Fixing incorrect centering of EditPad window.
>    
>    When calling the `setLocationRelativeTo()` method, a null parameter means that it centers the window in the screen. However, any subsequent resizing operations will change only the size, not the location of the window. Understandable, but now the window is no longer centered. So, changing the order of operations.

Ok, let me try. I am not too familiar with this.

Ok, does that look better?

Thanks for approving. I see that the sponsor tag is gone. I will wait until the 24 hours to do the integrate command. Thanks for the help.

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

PR Comment: https://git.openjdk.org/jdk/pull/26814#issuecomment-3198154086
PR Comment: https://git.openjdk.org/jdk/pull/26814#issuecomment-3198157915
PR Comment: https://git.openjdk.org/jdk/pull/26814#issuecomment-3198172582


More information about the compiler-dev mailing list