RE: [OpenMap Users] receiving key events in a layer

From: Klawetter, DG Darol (6274) _at_ IS <darol.klawetter_at_L-3com.com>
Date: Mon, 16 May 2005 12:13:00 -0500

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

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT