--- old/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java 2012-04-27 16:08:52.000000000 +0400 +++ new/src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java 2012-04-27 16:08:52.000000000 +0400 @@ -61,6 +61,8 @@ private static native void nativeSetNSWindowMinimizedIcon(long nsWindowPtr, long nsImage); private static native void nativeSetNSWindowRepresentedFilename(long nsWindowPtr, String representedFilename); private static native void nativeSetNSWindowSecurityWarningPositioning(long nsWindowPtr, double x, double y, float biasX, float biasY); + private static native void nativeModallyBlocked(long nsWindowPtr); + private static native void nativeModallyUnblocked(long nsWindowPtr); private static native int nativeGetScreenNSWindowIsOn_AppKitThread(long nsWindowPtr); @@ -120,7 +122,7 @@ // corresponds to method-based properties static final int HAS_SHADOW = 1 << 10; - static final int ZOOMABLE = 1 << 11; + static final int ZOOMABLE = 1 << 11; static final int ALWAYS_ON_TOP = 1 << 15; static final int HIDES_ON_DEACTIVATE = 1 << 17; @@ -795,6 +797,16 @@ // value when the native notification comes to us } + @Override + public void modallyBlocked() { + nativeModallyBlocked(getNSWindowPtr()); + } + + @Override + public void modallyUnblocked() { + nativeModallyUnblocked(getNSWindowPtr()); + } + // ---------------------------------------------------------------------- // UTILITY METHODS // ----------------------------------------------------------------------