RFR: 8365643: JShell EditPad out of bounds on Windows
Alexey Ivanov
aivanov at openjdk.org
Mon Aug 18 14:41:13 UTC 2025
On Mon, 18 Aug 2025 13:51:07 GMT, Christian Stein <cstein at openjdk.org> wrote:
> > Do we need a update to EditPadTest to ensure all parts of that JFrame is rendered on the screen?
>
> I think such a test, if deemed necessary, should be added to the "core" Swing tests instead. Here, it would be an implementation detail that only applies to screens equal or larger than 800x600 in dimension ... on Windows.
If the screen resolution is 800×600, the frame with the same size can't fit because the screen usually has other elements, such a taskbar, covering portion of the screen.
If it's assumed that no screen is less than 800×600, then the fix is fine; yet if a screen resolution happens to be less than that, the edit pad frame won't fit on the screen.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26814#issuecomment-3197210945
More information about the compiler-dev
mailing list