JShell EditPad is cutoff by default
Chen Liang
chen.l.liang at oracle.com
Mon Aug 18 03:46:47 UTC 2025
Hi David, thank you so much for your report!
Indeed, I can reproduce this issue on my windows device with a different resolution - the 3 bottom buttons are out of the screen. I have created https://bugs.openjdk.org/browse/JDK-8365643 to track this issue. (Meanwhile it doesn't happen on Ubuntu)
I think the problem lies in this line - https://github.com/openjdk/jdk/blob/bd65d483df4742bb7ce79b613f10f70a45117f84/src/jdk.editpad/share/classes/jdk/editpad/EditPad.java#L92
Since you suggested the solution, can you try replacing that call with setLocationByPlatform and see if this fixes your problem on Windows?
If this works for you, feel free to contribute a patch to OpenJDK upstream.
Kind regards, Chen Liang
________________________________
From: compiler-dev <compiler-dev-retn at openjdk.org> on behalf of David Alayachew <davidalayachew at gmail.com>
Sent: Sunday, August 17, 2025 9:39 PM
To: compiler-dev <compiler-dev at openjdk.org>
Subject: JShell EditPad is cutoff by default
Hello @compiler-dev<mailto:compiler-dev at openjdk.org>,
On my Windows 11 laptop, when I open up jshell and type /edit, the edit pad that pops up is ALWAYS cutoff at the bottom right of my screen. Please note, I have a 1920x1080 monitor and a computer set to that resolution.
It's annoying, and a bad user experience. Wouldn't it make more sense to do something similar to Swing's setLocationByPlatform()? Or better yet, just pick a sensible default?
This should be incredibly easy to recreate. I have tested this on 4 different computers, and all have the same behaviour.
Thank you for your time and attention.
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20250818/ba6be107/attachment-0001.htm>
More information about the compiler-dev
mailing list