src/macosx/classes/sun/lwawt/macosx/CPlatformEmbeddedFrame.java

Print this page

        

*** 23,42 **** * questions. */ package sun.lwawt.macosx; - import sun.lwawt.PlatformWindow; - import sun.lwawt.LWWindowPeer; - - import sun.java2d.opengl.CGLLayer; - import sun.java2d.SurfaceData; - - import sun.awt.CausedFocusEvent; - import java.awt.*; ! import sun.util.logging.PlatformLogger; /* * Provides a lightweight implementation of the EmbeddedFrame. */ --- 23,39 ---- * questions. */ package sun.lwawt.macosx; import java.awt.*; ! import sun.awt.CausedFocusEvent; ! import sun.java2d.SurfaceData; ! import sun.java2d.opengl.CGLLayer; ! import sun.lwawt.LWWindowPeer; ! import sun.lwawt.LWWindowPeer.PeerType; ! import sun.lwawt.PlatformWindow; import sun.util.logging.PlatformLogger; /* * Provides a lightweight implementation of the EmbeddedFrame. */
*** 132,141 **** --- 129,139 ---- @Override public void setAlwaysOnTop(boolean value) {} // This method should be properly implemented for applets. // It returns null just as a stub. + @Override public PlatformWindow getTopmostPlatformWindowUnderMouse() { return null; } @Override public void updateFocusableWindowState() {}
*** 190,195 **** --- 188,202 ---- @Override public void setWindowState(int windowState) {} @Override public void setModalBlocked(boolean blocked) {} + + /* + * The method could not be implemented due to CALayer restrictions. + * The exeption enforce clients not to use it. + */ + @Override + public boolean isUnderMouse() { + throw new RuntimeException("Not implemented"); + } }