On 23 Sep, 03:49, TorNorbye <[email protected]> wrote:
> On Sep 22, 7:44 pm, TorNorbye <[email protected]> wrote:
>
> > If you need to intercept mouse handlers for the scene, you can add a
> > "glass pane"; add a transparent Rectangle at the end of the
> > scene.content and attach mouse handlers to it. Since this is visually
> > at the top (because you added it as the last child of the scene) it
> > will always receive key events
>
> Sorry, I meant mouse events...
>
> > , and since it is transparent, it will
> > not block mouse events to the content below it.
>
> Key events are trickier to deal with than mouse events, because once
> another node gets focus your key handler doesn't get called anymore,
> and the glasspane trick which works for mouse events doesn't work for
> key events.
>
Hi
This is exactly how I built a ``LightBox'' dialog component with a
transparent rectange to resize to the parent scene.
Key event is harder once a scenegraph Node request the focus. All the
key event will be passed to it.
So you need to think a little bit now how your application will work.
Key focus model has been around since OSF Motif. It is not hard.
All of which reminds me. Did Joe follow up on talking with the JavaFX
team about his key traversal model ideas?
> -- Tor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---