> Hi, I've searched Google for this before but found nothing really
> satisfying.
[quoted text clipped - 9 lines]
> not very elegant, though.
> Is there another way to get the same result ?
This is pretty much how I would do it.
If you store your game square locations as Rectange objects in a
collection, you can then test for which square a certain Point2D object
is in by calling Rectange.contains(..the Point2D object...) for each
Rectangle, or until one call to contains(...) return true.
> Is there a way to get something like an clickable imagemap ? Or would it be
> a bad idea ?
Not that I know of in java. You write it yourself, it's not too hard....
> Or should I use transparent panels, above the board background ?
Ooh no, steer clear of farting about with transparent components, you'll
just make your life harder.
> I don't kow which way to go, from here.
>
> Thanks in advance :)
HTH,
alex