< prev index next >

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

Print this page

        

*** 188,197 **** --- 188,198 ---- final String filename = ((java.io.File)value).getAbsolutePath(); nativeSetNSWindowRepresentedFilename(c.getNSWindowPtr(), filename); }} }) { + @SuppressWarnings("deprecation") public CPlatformWindow convertJComponentToTarget(final JRootPane p) { Component root = SwingUtilities.getRoot(p); if (root == null || (LWWindowPeer)root.getPeer() == null) return null; return (CPlatformWindow)((LWWindowPeer)root.getPeer()).getPlatformWindow(); }
*** 517,526 **** --- 518,528 ---- public boolean isVisible() { return this.visible; } @Override // PlatformWindow + @SuppressWarnings("deprecation") public void setVisible(boolean visible) { final long nsWindowPtr = getNSWindowPtr(); // Process parent-child relationship when hiding if (!visible) {
*** 672,681 **** --- 674,684 ---- final long nsWindowPtr = getNSWindowPtr(); nativePushNSWindowToBack(nsWindowPtr); } @Override // PlatformWindow + @SuppressWarnings("deprecation") public void toFront() { final long nsWindowPtr = getNSWindowPtr(); LWCToolkit lwcToolkit = (LWCToolkit) Toolkit.getDefaultToolkit(); Window w = DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(); if( w != null && w.getPeer() != null
< prev index next >