I am working on a board game that has a board similar to this one:
mapaTeg.jpg
Is Swing the best tool to do it?
Thanks.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
I am working on a board game that has a board similar to this one:
mapaTeg.jpg
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.
Use highlight tags to help others help you!
[highlight=Java]Your prettily formatted code goes here[/highlight]
Using these tags makes your code formatted, and helps everyone answer your questions more easily!
Wanna hear something funny?
Me too.
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!![]()
Use highlight tags to help others help you!
[highlight=Java]Your prettily formatted code goes here[/highlight]
Using these tags makes your code formatted, and helps everyone answer your questions more easily!
Wanna hear something funny?
Me too.
I am experimenting with Apache Batik + Inkscape. I think it will work.