--- old/src/macosx/native/sun/awt/LWCToolkit.m 2014-07-15 13:56:51.000000000 +0400 +++ new/src/macosx/native/sun/awt/LWCToolkit.m 2014-07-15 13:56:51.000000000 +0400 @@ -452,3 +452,14 @@ } +/* + * Class: sun_lwawt_macosx_LWCToolkit + * Method: isEmbedded + * Signature: ()Z + */ +JNIEXPORT jboolean JNICALL +Java_sun_lwawt_macosx_LWCToolkit_isEmbedded +(JNIEnv *env, jclass klass) { + return [ThreadUtilities isAWTEmbedded] ? JNI_TRUE : JNI_FALSE; +} +