Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
It would probably be more attractive and flexible to add a mouse listener to your JPanel (I assume that's where you're drawing the image) with addMouseListener(). Then you can check any click event against your array of objects which reside on the map. Each object can check whether the click was on itself and take whatever action is needed.
Replies: |
Sponsored Links
|