TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
761 stars 138 forks source link

Mac TurboVNC Viewer: Full-screen mode no longer works with Java 17 #299

Closed dcommander closed 2 years ago

dcommander commented 2 years ago

Referring to https://bugs.openjdk.java.net/browse/JDK-8228638, the **com.apple.eawt.FullScreen*** classes were deprecated in Java 11 and removed in Java 17 without providing any replacement functionality. The JDK developers claim that applications should be able to use setExtendedState(JFrame.MAXIMIZED_BOTH) to programmatically activate macOS full-screen mode for a window. However, I cannot make that work, and after examining the JDK source code, it doesn't appear that any such functionality has been implemented.

dcommander commented 2 years ago

For whatever reason, this appears to no longer be an issue. I no longer receive deprecation warnings with Java 11, and the **com.apple.eawt.FullScreen*** classes now work with Java 17. Not sure what happened, but I'm not complaining.