< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Print this page

        

*** 23,35 **** * questions. */ package sun.lwawt.macosx; - import com.apple.eawt.FullScreenAdapter; - import com.apple.eawt.FullScreenUtilities; - import com.apple.eawt.event.FullScreenEvent; import java.awt.*; import java.awt.Dialog.ModalityType; import java.awt.event.*; import java.beans.*; import java.lang.reflect.InvocationTargetException; --- 23,32 ----
*** 605,614 **** --- 602,625 ---- boolean isKeyWindow = CWrapper.NSWindow.isKeyWindow(ptr); if (!isKeyWindow) { CWrapper.NSWindow.makeKeyWindow(ptr); } + + if (owner != null + && owner.getPeer() instanceof LWLightweightFramePeer) { + LWLightweightFramePeer peer = + (LWLightweightFramePeer) owner.getPeer(); + + long ownerWindowPtr = peer.getOverridenWindowHandle(); + if (ownerWindowPtr != 0) { + //Place window above JavaFX stage + CWrapper.NSWindow.addChildWindow( + ownerWindowPtr, ptr, + CWrapper.NSWindow.NSWindowAbove); + } + } }); } else { execute(ptr->{ // immediately hide the window CWrapper.NSWindow.orderOut(ptr);
< prev index next >