Why does Java resize a Window to 1x1 pixel when HDMI is unplugged (and does not resize back when HDMI is plugged)

Philip Race philip.race at oracle.com
Fri Jun 16 20:18:25 UTC 2023


I'd like to re-iterate that Wayland is not a supported platform for ANY 
version of JDK.
It is known "not to work" - I suggest you use X.org, not Wayland.
And when we do get to support Wayland it will be on a VERY recent Linux 
platform.
As a minimum it will probably require Gnome 45  - which isn't even 
available for another few months and only
in distros some time after that.
We even go to the trouble in the Oracle JDK supported platform matrix of 
explicitly calling out Wayland mode as not supported.

I don't really know if Wayland is the actual problem here, I just know 
it is unsupported

If X.org cures the problems, then you have your answer
If you can reproduce your problems on X.org then that is a much more 
certain base for debugging your actual issue
which seems likely to a display configuration issue for which I can 
believe there are issues depending on h/w, video driver, JDK version etc.

But definitely JDK 11u is VERY OLD and you'll keep getting hints to 
upgrade to the latest (JDK20).

So that's my gentle hint as to what direction you should take - but be 
informed that these lists are not a support forum.
They are lists exclusively for people contributing fixes to the JDK 
itself, so you can't expect everyone to jump on finding a solution for you,
especially on an old and relatively obscure configuration.

-phil

On 6/9/23 10:18 AM, Martin Petzold wrote:
> Am 09.06.23 um 15:47 schrieb Aleksei Ivanov:
>> If it is a full-screen JFrame, you can exit full-screen mode and 
>> enter it again. It may help.
>>
> Thanks, I can restore the size with your suggestion: I'm now using a 
> scheduled executor service to check size and if it is not full screen 
> remove full screen and set full screen window again. However, the 
> Window does not show - it is not rendered. I tried setVisible(true) 
> again, but no effect.
>
> Martin
>




More information about the client-libs-dev mailing list