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

java.lang.ClassCastException when clicking with the right button in a FlowLayout, root of the scene

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      Windows XP, RAM 3 giga, Dual core

    • Subcomponent:
      web

      Description

      Hi,

      I have a WebView in a FlowLayout which is the Root of a scene. When I right click the WEB Pane, I get the following exception:

      java.lang.ClassCastException: javafx.scene.layout.FlowPane cannot be cast to javafx.scene.Group
      at com.sun.webpane.sg.theme.PopupMenuImpl.doShow(PopupMenuImpl.java:104)
      at com.sun.webpane.sg.theme.ContextMenuImpl.show(ContextMenuImpl.java:62)
      at com.sun.webpane.platform.ContextMenu.fwkShow(ContextMenu.java:40)
      at com.sun.webpane.platform.WebPage.twkProcessMouseEvent(Native Method)
      at com.sun.webpane.platform.WebPage.dispatchMouseEvent(WebPage.java:651)
      at javafx.scene.web.WebView.impl_processMouseEvent(WebView.java:207)
      at javafx.scene.web.WebView$1.dispatchEvent(WebView.java:243)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at javafx.scene.Node$7.dispatchEvent(Node.java:3841)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at javafx.stage.Window.fireEventImpl(Window.java:416)
      at javafx.stage.Window.fireEvent(Window.java:408)
      at javafx.scene.Node.fireEvent(Node.java:3919)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:1794)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:1677)
      at javafx.scene.Scene$MouseHandler.access$400(Scene.java:1654)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:867)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1309)
      at com.sun.javafx.tk.glass.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:125)
      at com.sun.glass.ui.View.handleMouseEvent(View.java:249)
      at com.sun.glass.ui.View.notifyMouse(View.java:457)
      at com.sun.glass.ui.windows.WindowsApplication._runLoop(Native Method)
      at com.sun.glass.ui.windows.WindowsApplication.access$100(WindowsApplication.java:12)
      at com.sun.glass.ui.windows.WindowsApplication$1.run(WindowsApplication.java:31)
      at java.lang.Thread.run(Unknown Source)

      The source is attached

        Attachments

          Activity

            People

            • Assignee:
              ant Anton Tarasov
              Reporter:
              wsiqueirajfx William Antônio Siqueira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: