Does JavaFX have a mouse transparency problem?
Richard Bair
richard.bair at oracle.com
Mon Oct 1 05:41:39 PDT 2012
I believe pickInBounds of the region is what you're looking for? In the case that isn't it, subclass your top pane and override contains to only answer true based on the children.
Cheers
Richard
On Oct 1, 2012, at 4:00 AM, Randahl Fink Isaksen <randahl at rockit.dk> wrote:
> 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