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.

Results 1 to 6 of 6

Thread: World Map

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default World Map

    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.


  2. #2
    Member snowguy13's Avatar
    Join Date
    Nov 2011
    Location
    In Hyrule enjoying a chat with Demise and Ganondorf
    Posts
    339
    My Mood
    Happy
    Thanks
    31
    Thanked 48 Times in 42 Posts

    Default Re: World Map

    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.

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: World Map

    That's the image.
    Is there anything similar to the <map> tag in HTML?

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: World Map

    Something like this is what I would like to do: mapper.js (automatic area highlighting for image maps)

  5. #5
    Member snowguy13's Avatar
    Join Date
    Nov 2011
    Location
    In Hyrule enjoying a chat with Demise and Ganondorf
    Posts
    339
    My Mood
    Happy
    Thanks
    31
    Thanked 48 Times in 42 Posts

    Default Re: World Map

    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.

  6. #6
    Junior Member
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: World Map

    I am experimenting with Apache Batik + Inkscape. I think it will work.

Similar Threads

  1. Hello World!
    By i_masyhudi in forum Member Introductions
    Replies: 1
    Last Post: July 27th, 2011, 02:50 AM
  2. Hello World!
    By Rudde in forum Member Introductions
    Replies: 0
    Last Post: February 19th, 2011, 03:29 AM
  3. Hello World !
    By ArunUOM in forum Member Introductions
    Replies: 2
    Last Post: June 28th, 2010, 03:29 AM
  4. Hello World.
    By cselic in forum Member Introductions
    Replies: 0
    Last Post: April 21st, 2010, 03:41 AM
  5. hello world
    By fiZ in forum Member Introductions
    Replies: 1
    Last Post: January 20th, 2010, 09:46 AM