VWorkflows icon indicating copy to clipboard operation
VWorkflows copied to clipboard

Mouse Click Event ignored on Window

Open bigDevDe opened this issue 11 years ago • 1 comments

When retrieving a Window for a node, the mouse click event is ignored (e.g. mouse entered does its job!):

VFlow vFlow ...; VNode vNode ...;

vFlow.getNodeSkinsById(vNode.getId()).stream() .filter(s -> s instanceof FXFlowNodeSkin) .map(s -> ((FXFlowNodeSkin) s).getNode()) .forEach(window -> {

            // MouseClick IGNORED!!!!
            window.setOnMouseClicked(mouseEvent ->  System.out.println("Clicked!"));

        });

bigDevDe avatar Jun 24 '14 09:06 bigDevDe

The setOnMouse...(...) methods are used internally by the JFXtras window control. This is bad design and should be fixed. Feel free to report the bug there. I'll fix it ASAP.

Workaround: use event handlers instead.

Demo Application: https://gist.github.com/miho/6fbe03741174aff3083d

miho avatar Jul 02 '14 09:07 miho