Results 1 to 3 of 3
  1. #1
    Catfather is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Default Project Guidance

    Hi, I'm looking for some advice on a java project I have to complete for a class I'm taking.

    Basically I'm not really sure where to start but here is a little background info and any advice would be greatly appreciated.

    I have to create a program that will allow a user to input sever locations (city, state, zip) and it has to be using a GUI. In addition the user has to be able to edit the list of locations, ex. add, delete, reorder. So far i've managed to make a simple GUI with 3 different text boxes which ideally they will put city in the first one, state in second, and zip in third. But after they enter the location the program has to retrieve the latitude/longitude so it can be plugged into a URL which should bring us to a website where we can retrieve the information via XML. I'm not really worried about the XML part yet, mainly i'm just concerned with getting the GUI up and running.

    I was wondering if anyone can give any insight on how to make a list where the program can retrieve the different locations, and how to add, delete, and reorder.

    Thanks in advance!

  2. #2
    rp181 is offline Member
    Join Date
    Mar 2009
    Posts
    70
    Rep Power
    0

    Default

    Look into the LinkedList API. As for lat/lon, You can use the google API (requires some XML parsing, but fairly simple).

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    To associate a city with a latitude and longitude, you need to use a Map....I would use a TreeMap<String, MetaData> (where MetaData is a class you will define that contains lat lon...but can be extended later on to add more information without requiring a lot of rewrite) , since it's an efficient algorithm.

Similar Threads

  1. Some Guidance
    By bengregg in forum Java Applets
    Replies: 15
    Last Post: 01-11-2011, 10:04 AM
  2. newbie guidance.
    By Bgreen7887 in forum New To Java
    Replies: 28
    Last Post: 10-17-2010, 10:31 PM
  3. Guidance for SCJP
    By sairam in forum New To Java
    Replies: 1
    Last Post: 06-30-2010, 09:21 AM
  4. Guidance needed
    By Curtiz in forum AWT / Swing
    Replies: 1
    Last Post: 03-23-2010, 05:41 PM
  5. Guidance
    By gizdev in forum New To Java
    Replies: 5
    Last Post: 09-07-2008, 07:14 PM

Posting Permissions

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