Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012026

[macosx] Component.getMousePosition() does not work in an applet on MacOS

XMLWordPrintable

    • b110
    • x86
    • os_x
    • Verified

        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)

         

              pchelko Petr Pchelko (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: