I want to build a desktop application which has google maps embedded to it. This app should have a thread to read coordinate data online a usb microphone to use. This application will move the google map markers to their new locations based on the data retrieved from online connections on each refresh.

As far as I know gmaps has a javascript API so the first idea in my mind was to embed this mapview into a java applet. So the application will run on a browser. I'm not sure if this will work.

Do you guys have any idea about this or any other advices you might have?

closed as unclear what you're asking by gnat, Dan Pichelman, user40980, GlenH7, Bill Aug 12 '13 at 14:20

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What's actually the use of the microphone? – Marcel Aug 9 '13 at 5:32

As far as I know, usage of Google Maps for desktop apps is forbidden.

(Scratch that, it's now OK, so long as it's a publicly available and downloadable app - will rewrite this answer.)

If you want this to run within a native desktop application - and not in a normal brower connecting to a web-app, though that could also be one way of doing it - you'll need to integrate an in-app browser component.

If you are planning on building this into a Java program, have a look at JDIC and or at integrating a rendering engine (like WebKit).

You can also look at:

Your question does confuse me a bit though, as you mention using an applet (so, a Java application embedded in a WebPage, to display a map that could directly be displayed in a webpage? "Why, god why?", would be my first reaction). You could use an Applet though, and communicate with it via Javascript, if you want to display the map in the page and do other things in your applet, but that sounds a bit clunky.

Otherwise, as mentioned earlier, you could simply implement your project as a web-app and give access to it from any any platform with a browser supporting JavaScript.

  • Do you have references to support this claim? – FrustratedWithFormsDesigner Jun 19 '12 at 18:21
  • 1
    @FrustratedWithFormsDesigner: Fixed it, that's not the case any more. Sorry. – haylem Jun 19 '12 at 18:23
  • @haylem "so, a Java application embedded in a WebPage, to display a map that could directly be displayed in a webpage? "Why, god why?", would be my first reaction" I want to have an applet because as far as I know ordinary html or php web pages do not have a thread to listen a microphone through usb support? and can they listen to a specific ip for data retrieval? Or do they? If im wrong this will be great and ease my job a lot:) – dramaticlook Jun 19 '12 at 18:47
  • @dramaticlook: ok, so that's what was confusing. From your title, we think you want to write a desktop app. Now it sounds like you want to write a web-app. See, that's why we need more context in the question. No, you can't do (all of) that with PHP or HTML only. (more coming) – haylem Jun 19 '12 at 21:37
  • @dramaticlook: You could indeed do it with an Applet, but that doesn't tie the Google Maps embedding into the page to the applet. An applet can communicate with its container, though to a limited extent. You won't be able to listen to your microphone, but you could listen to a IP for retrieval (or rather do the inverse: query the IP). If we have the bigger picture, we could give a better answer. – haylem Jun 19 '12 at 21:37

Have you had the chance to take a look at GreatMaps?

It's a .NET control that can be used/embedded in .NET apps. It's compatible with all framework versions and supports many map providers and Google Maps is between them.

  • wow this one seems nice. thank you. however I will prefer to go with java which im used to working with :) i found some workarounds like invoking javascript from applet or simulating a thread with javascript. if they do not work i will gove this a try. THANKS ANYWAYS!!!:) – dramaticlook Jun 19 '12 at 20:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.