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?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
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
You can use Jawin to extract native stubs and use it to embed Google Earth on a Java Swing container. I've worked on it before, please check my demo video on youtube
http://www.youtube.com/watch?v=2Pf8V8uubVM
As WTP'-- pointed out to the Blog, http://www.brantb.com/2007/12/java-and-google-earth-com-api.html Brant used "com4J" to generate the stubs.
I just discovered a link on java.net ...
Building Maps into Your Swing Application with the JXMapViewer
you could us a java RDP client and run Google Earth on a remote desktop
There's also NASA's World Wind SDK.
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 :(