Results 1 to 4 of 4
  1. #1
    kumarjivi is offline Member
    Join Date
    Jun 2013
    Location
    India
    Posts
    5
    Rep Power
    0

    Default How to impement this? Any idea?

    The scenario to implement is:
    There is a map of India on GUI.
    I will link all the 28 states to a unique number each (say 1 to 28).
    I will ask User to enter any number.
    If the User enters any number between 1 to 28, then the part of the map which belongs to the state associated with the entered number should be enlightened or displayed with any color.
    Please help.
    Thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: How to impement this? Any idea?

    Quote Originally Posted by kumarjivi View Post
    How to impement this? Any idea?
    Please go through the Forum Rules, particularly the third paragraph. To edit your subject line, click 'Edit Post' and then 'Go Advanced'

    Also, since there's nothing 'advanced' about this, I'm moving this thread to New to Java.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,015
    Blog Entries
    7
    Rep Power
    20

    Default Re: How to impement this? Any idea?

    You need the coordinates of the borders of those states.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    6

    Default Re: How to impement this? Any idea?

    I'd probably use two images: a map of India and another image with shapes of individual states on a transparent background. When a state is selected, blit the correct tile from the states image onto the map at the correct coordinates. Trail: 2D Graphics (The Java™ Tutorials) is probably a good place to start learning how to do this.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. is this idea possible?
    By neoginn in forum New To Java
    Replies: 1
    Last Post: 10-12-2012, 06:52 AM
  2. I have no idea what I'm doing any more...
    By kaizen9001 in forum New To Java
    Replies: 1
    Last Post: 03-26-2011, 05:10 PM
  3. Idea
    By Engineer in forum New To Java
    Replies: 1
    Last Post: 09-19-2010, 07:02 PM
  4. need an Idea ...
    By Mekonom in forum AWT / Swing
    Replies: 43
    Last Post: 11-29-2009, 03:26 PM
  5. I have an idea !!
    By HosHos in forum New To Java
    Replies: 1
    Last Post: 08-12-2009, 06:38 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •