NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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 *************************************************************
visad
archives: