posted 22 years ago
I would extend the AWT Panel, Canvas, or just Component classes... does the grid need to appear on top of the image, or does the image just have to have seperate clickable areas? Add a MouseListener to this component, and use the getX() getY() methods of the MouseEvent passed to it to determine where in the grid was clicked... I know that a Rectangle class is in AWT, maybe those can also be used as grid cells...
I'll post some code to illustrate this soon...
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.