--- old/src/macosx/classes/sun/awt/CGraphicsDevice.java 2013-02-26 14:47:36.586448500 +0400 +++ new/src/macosx/classes/sun/awt/CGraphicsDevice.java 2013-02-26 14:47:36.204426700 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,6 +29,7 @@ import java.awt.DisplayMode; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; +import java.awt.Insets; import java.awt.Window; import java.util.Objects; @@ -110,8 +111,9 @@ return nativeGetYResolution(displayID); } - private static native double nativeGetXResolution(int displayID); - private static native double nativeGetYResolution(int displayID); + public Insets getScreenInsets() { + return nativeGetScreenInsets(displayID); + } /** * Enters full-screen mode, or returns to windowed mode. @@ -217,9 +219,15 @@ return nativeGetDisplayModes(displayID); } - private native void nativeSetDisplayMode(int displayID, int w, int h, int bpp, int refrate); + private static native void nativeSetDisplayMode(int displayID, int w, int h, int bpp, int refrate); + + private static native DisplayMode nativeGetDisplayMode(int displayID); - private native DisplayMode nativeGetDisplayMode(int displayID); + private static native DisplayMode[] nativeGetDisplayModes(int displayID); + + private static native double nativeGetXResolution(int displayID); + + private static native double nativeGetYResolution(int displayID); - private native DisplayMode[] nativeGetDisplayModes(int displayID); + private static native Insets nativeGetScreenInsets(int displayID); }