Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8483043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:58:47+00:00 2026-06-10T19:58:47+00:00

I want to create a simple GUI application that displays a map of a

  • 0

I want to create a simple GUI application that displays a map of a city.

I then want to programatically add items (assets) such as hotels, restaurants to this map as images.

Pseudo-Code would be as follows

[set up background object with map image covering entire form]

[create hotel1 object (image, label with icon or whatever]
hotel1.image = "hotel.png";
hotel1.size-x = 30;
hotel1.size-y = 30;
hotel1.location-x = 450; (pixels)
hotel1.location-y = 300;
background-object.add(hotel1);

[create restaurant1 object (image, label with icon or whatever]
restaurant1 .image = "hotel.png";
restaurant1 .size-x = 30;
restaurant1 .size-y = 30;
restaurant1 .location-x = 600; (pixels)
restaurant1 .location-y = 400;
background-object.add(restaurant1);

[repeat for hotel2, hotel3, restaurant2 etc...]

This way I could add any number of Assets to the map. The other functions I would require are

  • change the image of an asset (e.g. to show different image for an asset)
    hotel1.image = "hotel_closed.png";

  • overlap assets (if they are close together)

  • register a click event handler for each asset
  • change visibility of asset
    hotel1.visible = false;

I am an experienced .Net programmer. This task would be a simple one in .Net, however I am not clear on the best way to accomplish the above in Java. Please could someone suggest the best approach to achieving the above. I am happy to Google if a concept is suggested (I don’t need a full coded solution!!)

Many thanks, Ian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:58:48+00:00Added an answer on June 10, 2026 at 7:58 pm

    There’s a lot of places you could start, without knowing the entire requirements (ie if you need to download the maps, tile the maps etc), I can only give you a few overview suggestions

    I’d start by having a read through (in no particular order)

    • Creating a GUI With JFC/Swing
    • Concurrency in Swing
    • Custom Painting in Swing
    • 2D Graphics
    • Basic I/O

    I’d also make my self familiar with The Java Tutorials

    While most of the above are GUI specific, I’d be reading through things like

    • Essential classes
    • Learning the Java Language

    Simply because it doesn’t matter where you code in Java, these will always be useful.

    Happy readings 🙂

    UPDATE

    Oh, and of course, the all important API docs (AKA JavaDocs)

    UPDATE

    When you’re reasonable comfortable with all that, you might like to check out SwingX WS, it has a great example of pulling Google & OpenStreet Maps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use Qt to create a simple GUI application that can play
I want to create a simple app that shows me the city of the
I need to create a simple windows based GUI for a desktop application that
I really want to create a stunning-looking GUI desktop application that looks like, for
JavaScript. I want to create simple script, that will be resize loaded image using
I want to create a simple server application which runs on the desktop, and
I want to create a windows form application that will sit on our local
I want to create a very simple HTML/AJAX based GUI for a Python program.
I am building a simple wpf application. The gui has a button, that when
It seems that if I want to create a very basic Cocoa application with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.