All Node in JavaFX have the setMouseTransparent() method, as described in here , where the mouseTransparent property mouseTransparent :
If true, this node (along with all its children) is completely transparent to mouse events. When choosing a target for a mouse event, nodes with mouseTransparent set to true and their subtrees will not be taken into account.
If you need more complex mouse transparency effects, such as having only the parent node, can be transparent, you may need to combine this with another click detection method ( its name speeds me up at the moment. I think it was pickOnBounds , and in order to use it, I can’t say for sure, I think I abused it more, setting literally everything in my application as true or false , but I don’t remember which one, and, unfortunately, I couldn’t tell you which nodes you need to install for this properties), but for simple mouse transparency that should work.
awksp source share