JNIFrame depth checked