<AWT Dev> [JDK-8048731] com.apple.eawt.FullScreenUtilities#setWindowCanFullScreen

Alexander Zvegintsev alexander.zvegintsev at oracle.com
Thu Mar 2 15:26:09 UTC 2017


there is no replacement for setWindowCanFullScreen(), resizable windows 
are made fullscreenable by default(JDK-8143914 

However there is unofficial way to override it:

jFrame.getRootPane().putClientProperty("apple.awt.fullscreenable", false);


On 02/03/2017 14:01, Reto Merz wrote:
> Hi,
> Is there a replacement for com.apple.eawt.FullScreenUtilities#setWindowCanFullScreen(Window, Boolean) in Java 9 Desktop API?
> I can not find a similar method on java.awt.Desktop, java.awt.Taskbar or javax.swing.JFrame class.
> Thanks
> Reto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170302/8443304a/attachment.html>

More information about the awt-dev mailing list