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
*************************************************************


  • References:
    • mouse
      • From: Tiago Simoes
  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: