Listening for key events

I have a 3-D surface that represents the number of documents associated
with a particular word stem.  A green blob hovers just above the
surface and represents a stem of interest.  I would like the blob to
hover just above the highest peak and move to the next highest when the
tab key is pressed.  If shift-tab is pressed the blob moves to next
higher peak.  This is illustrated at

  http://www.wizards.dupont.com/Equinox/images/word-category-map-window.gif

the Java source is at

  http://www.wizards.dupont.com/Equinox/equinox.jar

My question is, how can I intercept tab/shift-tab key presses when the
graph has focus so I can in-turn move the green blob?  I tried adding a
KeyListener without any luck.  I also checked out the VisAD examples
and did not see any that react to key presses.

Thanks in advance for any help.

  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: