CalibeR.50
CalibeR.50

Reputation: 155

JavaFX - Make Node invisible for events

I need to make some Nodes in JavaFX invisible for Mouse Events. For example, there is a HBox with 6 Elements within and one Rectangle over the HBox, now I need to catch the MouseEntered and MouseExited Events on the 6 Elements of the HBox, which is not possible because the Rectangle is catching them.

Thank you for answers

Upvotes: 1

Views: 581

Answers (1)

Eeliya
Eeliya

Reputation: 1574

Use node.setMouseTransparent(true); to make the node transparent to mouse event.

Upvotes: 2

Related Questions