JDK-8012026 : [macosx] Component.getMousePosition() does not work in an applet on MacOS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2013-04-11
  • Updated: 2014-10-15
  • Resolved: 2013-09-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u55Fixed 8 b110Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
The method Component.getMousePosition() does not work on MacOS in an applet. It work with Java web start. The method throw a " Not implemented" RuntimeException. See the stacktrace for details.

Java Version: Java 8 b84 (Java 7 was not tested)
OS: MacOS 10.8.3

Exception in thread "AWT-EventQueue-2" java.lang.RuntimeException: Not implemented
            at sun.lwawt.macosx.CPlatformEmbeddedFrame.isUnderMouse(CPlatformEmbeddedFrame.java:200)
            at sun.lwawt.macosx.CMouseInfoPeer.isWindowUnderMouse(CMouseInfoPeer.java:43)
            at java.awt.Component.findUnderMouseInWindow(Component.java:1330)
            at java.awt.Component.getMousePosition(Component.java:1382)
            at com.inet.jortho.CheckerListener.getCursorPosition(Unknown Source)
            at com.inet.jortho.CheckerListener.popupMenuWillBecomeVisible(Unknown Source)
            at javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible(JPopupMenu.java:682)
            at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:789)
            at javax.swing.JPopupMenu.show(JPopupMenu.java:965)
            at com.inet.editor.BaseEditor$5.showPopup(BaseEditor.java:419)
            at com.inet.editor.BaseEditor$5.mousePressed(BaseEditor.java:404)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
            at java.awt.Component.processMouseEvent(Component.java:6510)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
            at java.awt.Component.processEvent(Component.java:6278)
            at java.awt.Container.processEvent(Container.java:2229)
            at java.awt.Component.dispatchEventImpl(Component.java:4869)
            at java.awt.Container.dispatchEventImpl(Container.java:2287)
            at java.awt.Component.dispatchEvent(Component.java:4691)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4856)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4513)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4446)
            at java.awt.Container.dispatchEventImpl(Container.java:2273)
            at java.awt.Component.dispatchEvent(Component.java:4691)
            at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:728)
            at java.awt.EventQueue.access$200(EventQueue.java:103)
            at java.awt.EventQueue$3.run(EventQueue.java:687)
            at java.awt.EventQueue$3.run(EventQueue.java:685)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
            at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
            at java.awt.EventQueue$4.run(EventQueue.java:701)
           at java.awt.EventQueue$4.run(EventQueue.java:699)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:698)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:216)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:135)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:123)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)

 
Comments
Verified using attached applet.
19-05-2014