Re: How do you make KeyListeners work on Layers

From: Chinh Tang <ctang@teloptica.com>
Date: Tue Jul 09 2002 - 09:22:26 EDT

I see how it works now, Thanks Don.
-Chinh

Don Dietrick wrote:

> Hi Chinh,
>
> You don't need to set up KeyListeners for this - the MouseEvent has
> methods that let you check directly if a modifier key is pressed. The
> Layer provides a MapMouseListener in one if its methods, and the
> MapMouseListener (which can be the Layer itself) specifies which
> MapMouseModes it receives events from. When it receives the
> MouseEvent, it can check for key modifiers.
>
> Hope this helps,
>
> Don
>
> On Monday, July 8, 2002, at 02:13 PM, Chinh Tang wrote:
>
>> Hey all,
>> how do you make key listeners work on Layers?
>> Is there an example I can look at?
>>
>> I would like to detect the CTRL key and select multiple OM objects
>> with the mouse.
>>
>> Thanks,
>> -Chinh
>>
>> --
>> [To unsubscribe to this list send an email to "majdart@bbn.com"
>> with the following text in the BODY of the message "unsubscribe
>> openmap-users"]
>>
>>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, BBN Technologies, dietrick@bbn.com
> 10 Moulton Street, Cambridge, MA 02138
> 617-873-3031 [fax]-2794
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 9 09:22:13 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT