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.

-- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to