Does JavaFX have a mouse transparency problem?
Randahl Fink Isaksen
randahl at rockit.dk
Mon Oct 1 04:00:12 PDT 2012
I have two panes of components that I show directly on top of each other. In the bottom pane I have input controls like text fields and in the top pane I have floating stuff like tool tips that are shown on top of (in front of) the input controls.
To make this work I have set mouseTransparent to true for the top pane, so any clicks on that pane passes through to the input controls below (behind it). This works like a charm except I now want to make the tooltips clickable. It seems I cannot do that, since when the top pane is made mouse transparent all children of that pane are mouse transparent too, meaning my tooltips are mouse transparent.
I am thinking there's got to be a way I can work around this, but so far my experiments have not come to fruition.
Is it possible to have a transparent parent with non-transparent children, or is this a missing feature, or is there some other, better way?
Randahl
More information about the openjfx-dev
mailing list