views:

1197

answers:

5

Is it possible to embed a GoogleEarth view inside a Java Swing app? If so, could you please point me to a tutorial explaining how to do it?

+1  A: 

I just discovered a link on java.net ...

Building Maps into Your Swing Application with the JXMapViewer

Nate
This did not work for me.
Nate
+3  A: 

There's also NASA's World Wind SDK.

Nate
+1  A: 

Even though technically it is possible (using JXMapViewer), legaly it is not. Google does not allow using Google Maps outside of the browser.

One possible solution would be to embed JWebPane (http://weblogs.java.net/blog/alex2d/archive/JWebPaneJ1.pdf) into your Swing App, but it is still not ready :(

eugener
A: 

Here's a lil' tutorial which explains it all:

http://www.brantb.com/2007/12/java-and-google-earth-com-api.html

It uses the Google Earth COM API

Time Machine
+2  A: 

Embedding GoogleEarth inside Java Swing App is not feasible. Legally or otherwise. However you may find a way to embed Google Map on a frame.

Edit: Found this google post.

Gaurav
The Google post was exactly what I was looking for. Thanks!
Nate