在Google桌面应用程序中嵌入谷歌地图 [英] Embed google maps in Java desktop Application

查看:117
本文介绍了在Google桌面应用程序中嵌入谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Google地图嵌入到JPanel中。因为我想要放大/缩小的功能,所以使用静态图像是不可行的。为了达到这个目的,我可能需要嵌入一个网页(它显示谷歌地图)在我的Java桌面应用程序。我已经读过,我需要像WebKit(替代品?)来实现这一目标。



我很感谢任何帮助我的帮助:


  1. 将网页嵌入到Jpanel中。
  2. 显示Google地图的网页。


解决方案

是的,Google Maps API现在可以在桌面应用程序中使用

查看这些Stack Overflow主题:



Google Map in JAVA Swing





Java应用程序中的Webkit浏览器

用Java中的WebKit呈现网页< a>



你也可以看到 tutorail

I want to embed google maps on a JPanel. Since I want features like zoom-in/out, using static images isn't feasible.

To achieve this, I'll probably need to embed a webpage (which displays google maps) in my Java desktop application. And I've read that I'll need something like WebKit (alternatives?) to accomplish this.

I'd appreciate any help that'll help me:

  1. Embed a webpage in a Jpanel.
  2. That webpage to display google maps.

解决方案

Yes, the Google Maps APIs can now be used in Desktop applications

Check out these Stack Overflow threads:

Google Map in JAVA Swing

Embedding Gecko/Webkit in Java

Webkit browser in a Java app

Rendering webpages with WebKit in Java

You can also see the tutorail of using Maps in Java Desktop Application.

这篇关于在Google桌面应用程序中嵌入谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆