GoogleEarth inside Java Swing

2019-01-15 08:48发布

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?

8条回答
smile是对你的礼貌
2楼-- · 2019-01-15 09:17

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

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-15 09:22

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.

查看更多
The star\"
4楼-- · 2019-01-15 09:26
迷人小祖宗
5楼-- · 2019-01-15 09:26

you could us a java RDP client and run Google Earth on a remote desktop

查看更多
等我变得足够好
6楼-- · 2019-01-15 09:31

There's also NASA's World Wind SDK.

查看更多
beautiful°
7楼-- · 2019-01-15 09:32

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 :(

查看更多
登录 后发表回答