Re: mouse

Tiago-

Tiago Simoes wrote:

>  I need to implement a method that when the right button of the mouse is
> clicked it retrieves the coordinates where the click was made. How can i
> do this?

You can add a DisplayListener to your Display and listen
for DisplayEvent.MOUSE_PRESSED_RIGHT events.  DisplayEvents
have getX() and getY() methods.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************