Clickable area

HI,

I'm working on a game. I have been using different kinds of swing-stuff in it. But I need to solve one question. I would like to check if the user clicks on different kinds of areas on the screen. I have been using a JFrame and then I draw shapes. So if the user clicks on a shape, then I want things to happen.

Best wishes, Robin

[355 byte] By [Sir_Flusha] at [2007-11-27 1:51:21]
# 1
you need to capture mouse input (x,y coords) and do collision detection with the sprites. search for mouse input and 2d collision detection. it's pretty simple stuff.
SoulTech2012a at 2007-7-12 1:19:00 > top of Java-index,Java Essentials,New To Java...