Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Integrating Google Maps in Java Swing application

1,006 views
Skip to first unread message

Gilberto

unread,
May 17, 2010, 4:12:23 AM5/17/10
to
Hi, I need to include a map using Google Maps in a Java standalone
application. I read something about it and I suppose the best solution
is to include a panel that show HTML pages. Do you have any
suggestions? I haven't found much.

Thank you.

Arne Vajhøj

unread,
May 17, 2010, 6:55:11 PM5/17/10
to

A panel that show HTML *and* interpret heavy JavaScript?

Arne

Alessio Stalla

unread,
May 18, 2010, 3:28:58 AM5/18/10
to

Google Maps come in two flavours: static and dynamic. The former is
basically just an image accessed through an HTTP-based API, so it's
quite easy to embed it in a Swing application. The latter is heavily
JavaScript-based, so you'd need an embedded browser. If you only need
to show the map, you might consider embedding a native browser panel.
If you need to manipulate the map or get feedback from user input to
the map, things get more complicated...

Additionally, read carefully the fine print in the Google Maps terms
of service. I don't know if you can embed them in a non-web
application. At least the dynamic API has a concept of an API key
which is tied to a specific domain.

hth,
Alessio

Gilberto

unread,
May 18, 2010, 3:29:20 AM5/18/10
to
On May 18, 12:55 am, Arne Vajhøj <a...@vajhoej.dk> wrote:
> On 17-05-2010 04:12, Gilberto wrote:
>
> > Hi, I need to include a map using Google Maps in a Java standalone
> > application.[CUT]

>
> A panel that show HTML *and* interpret heavy JavaScript?

Have you any suggestions?

I'm evaluating Browser object in SWT.

Arne Vajhøj

unread,
May 18, 2010, 7:37:58 PM5/18/10
to
On 18-05-2010 03:29, Gilberto wrote:

> On May 18, 12:55 am, Arne Vajh�j<a...@vajhoej.dk> wrote:
>> On 17-05-2010 04:12, Gilberto wrote:
>>> Hi, I need to include a map using Google Maps in a Java standalone
>>> application.[CUT]
>>
>> A panel that show HTML *and* interpret heavy JavaScript?
>
> Have you any suggestions?
>
> I'm evaluating Browser object in SWT.

No. I just wanted to emphasize that Google maps is heavy
JavaScript, which somewhat increases the requirements.

I don't know that SWT browser object.

Arne


0 new messages