0

Having a GlassPane above an SVG canvas, I can transfer MouseEvents to the SVG canvas with:

SwingUtilities.convertMouseEvent(...)

but I can't transfer other events like the one registered by the SVG nodes:

((EventTarget) nNode).addEventListener("mousedown", new OnClickAction(cls),false);

Has this something to do with Event Bubbling?

Charles Mosndup
  • 600
  • 6
  • 19
  • 1
    Have you tried [this](https://stackoverflow.com/a/9709795/230513)? – trashgod Aug 14 '17 at 00:00
  • In fact yes, I am using the same code than in this redispatchMouseEvent method from the Glass Pane demo. The issue is that this method calls SwingUtilities.convertMouseEvent which only transfer MouseEvent. In my DOM SVG application the nodes are listening to Event, not MouseEvent. Thanks anyway. – Charles Mosndup Aug 14 '17 at 09:37

0 Answers0