I am working on a board game that has a board similar to this one:
Attachment 868
Is Swing the best tool to do it?
Thanks.
Printable View
I am working on a board game that has a board similar to this one:
Attachment 868
Is Swing the best tool to do it?
Thanks.
Is that the image you're using, or are you trying to draw it?
I'm not experienced at all with images in Java, but perhaps if you have the complete image you could divide it into sections and use a GridLayout to put the pieces together (this way, you could apply separate action listeners to each part).
If you're drawing it, I'm no help to you whatsoever. Sorry.
That's the image.
Is there anything similar to the <map> tag in HTML?
Something like this is what I would like to do: mapper.js (automatic area highlighting for image maps)
Okay... Hm...
Well I'm not the most experienced with graphics in Java, but one thing that comes to mind is what I said before (using blocks of the images in a GridLayout). Of course, this only works if you want the areas on your map to be square...
Hm. I'll research it; now I'm curious! :D
I am experimenting with Apache Batik + Inkscape. I think it will work.