Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 1 / Java Q & A Archive / Java Q & A Main Page

9-13-98

Applet to display Map

Hi All...
I would like to write an applet to display a jpg image which is a map and when you click your mouse on the picture it displays the x,y co-ordinates of where you clicked in a Textfield. Does anyone have any clues on this?

Steve


Response
9-13-98

Re: Applet to display Map

The "java.awt.event.MouseEvent" API has methods called "getX()" and "getY()" which I believe are what you are looking for ... if you need more help... let me know, and I'll write out a little code

Mike


Home / Java Q & A Archive Page 1 / Java Q & A Archive / Java Q & A Main Page