< prev index next >

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

Print this page

        

*** 204,222 **** @Override public void setVisible(boolean visible) { synchronized (lock) { final long nsWindowPtr = getNSWindowPtr(); - // Process parent-child relationship when hiding - if (!visible) { - // Unparent myself - if (owner != null && owner.isVisible()) { - CWrapper.NSWindow.removeChildWindow( - owner.getNSWindowPtr(), nsWindowPtr); - } - } - // Actually show or hide the window if (visible) { CWrapper.NSWindow.orderFront(nsWindowPtr); } else { CWrapper.NSWindow.orderOut(nsWindowPtr); --- 204,213 ----
*** 224,237 **** this.visible = visible; // Manage parent-child relationship when showing if (visible) { ! // Add myself as a child if (owner != null && owner.isVisible()) { ! CWrapper.NSWindow.addChildWindow(owner.getNSWindowPtr(), ! nsWindowPtr, CWrapper.NSWindow.NSWindowAbove); // do not allow security warning to be obscured by other windows applyWindowLevel(ownerWindow); } } --- 215,228 ---- this.visible = visible; // Manage parent-child relationship when showing if (visible) { ! // Order myself above my parent if (owner != null && owner.isVisible()) { ! CWrapper.NSWindow.orderWindow(nsWindowPtr, ! CWrapper.NSWindow.NSWindowAbove, owner.getNSWindowPtr()); // do not allow security warning to be obscured by other windows applyWindowLevel(ownerWindow); } }
< prev index next >