can't hide Fullscreen icon on JFrame on OpenJDK7 b218

Bino George bino at apple.com
Sat Nov 19 22:38:02 PST 2011


Hi Tobey,

This was a bug in the Fullscreen code I checked in last week. I have checked in a fix for it. Sorry about that. The Lion Fullscreen implementation in JDK7 is still broken due to a bug in AppKit, but at least you will not see the bug unless you opt into Lion Fullscreen support.

Thanks,
Bino.

On Nov 19, 2011, at 1:04 PM, Tobias Bley wrote:

> Hi,
> 
> In OpenJDK7 I can't hide the fullscreen icon shown in the right corner by default. When I press the fullscreen icon the Java application freezes. So I tried to hide the icon using the FullScreenUtilities-Class or native code. But it's not possible to hide the fullscreen icon in OpenJDK7, in JDK6 it works.
> 
> The difference between both JDK versions is the type of the main window:
> 
> When I call the following native code, I'll get the following results:
> 
> NSWindow *mainWindow = [[NSApplication sharedApplication] mainWindow];
> 
> OpenJDK7: AWTWindow
> JDK6: CocoaAppWindow
> 
> Is it a bug or how can I disable the fullscreen capability?
> 
> Best regards,
> Tobi



More information about the macosx-port-dev mailing list