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

JFXPanel should delegate unused mouse events

XMLWordPrintable


      The picture at http://fxexperience.com/2011/06/using-javafx-2-0-inside-swing-applications-by/ has a swing button. And top of it, there is a javafx button.
      There is no easy way of activating jbutton. When you click jbutton, jfxpanel will have the event. You should delegate it to the jbutton (or panel containing it).
      In that case, when you click javafx button, both javafx button and jbutton will fire.

      There should be a mechanism such that jfxpanel has an flag indicating this delegation.
      Normally, If you attach mouse handlers to the scene, you will get mouse events unless the mouse events are consumed. So if the delegation flag is set, the unconsumed events of the scene should be re-triggered.

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported: