--- old/src/macosx/classes/sun/lwawt/macosx/CWrapper.java 2012-02-29 18:46:58.000000000 +0400 +++ new/src/macosx/classes/sun/lwawt/macosx/CWrapper.java 2012-02-29 18:46:57.000000000 +0400 @@ -72,6 +72,8 @@ public static native void makeFirstResponder(long window, long responder); public static native long screen(long window); + + public static native void toggleFullScreen(long window, long sender); } public static final class NSView { @@ -81,9 +83,6 @@ public static native void setFrame(long view, int x, int y, int w, int h); public static native Rectangle2D frame(long view); public static native long window(long view); - - public static native void enterFullScreenMode(long view); - public static native void exitFullScreenMode(long view); } public static final class NSObject { @@ -94,6 +93,13 @@ public static native Rectangle2D frame(long screen); public static native Rectangle2D visibleFrame(long screen); public static native long screenByDisplayId(int displayID); + + /** [[[NSScreen screens] objectAtIndex:0] retain]. */ + public static native long screens_0(); + } + + public static final class NSMenu { + public static native void setMenuBarVisible(boolean visible); } public static final class NSColor {