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

Martin Petzold martin.petzold at tavla.de
Fri Jun 9 17:18:52 UTC 2023


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