Hi Pete,
To capture key strokes, you will not only have to add a key listener, but
you will have to perform a "requestFocus()" in your map frame and/or
mapBean. I performed the requestFocus upon a mouseEntered() event. I could
not detect keystrokes until I did this.
Darol
-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]On
Behalf Of Peter Wilkes
Sent: Monday, May 16, 2005 9:35 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] receiving key events in a layer
Hello all!
My client asked for additional Map functionality by cycling through the
displayed map objects by pressing keys on the keyboard. they feel if a lot
of items are displayed on the map this might make it easier to select map
objects.
i tried implementing KeyListener on my Layer to pick up key events however
that did not seem to work. i also tried implementing KeyListener on the
JPanel that contains the map bean however that did not seem to work.
does anyone have any suggestions on how i could fulfill this
functionality?
thank you. any help is greatly appreciated.
Pete
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe
openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon May 16 2005 - 13:14:41 EDT