Elijah
Elijah

Reputation: 13594

Embedding web browser window in Java

Does anyone know a way to open up an instance of the operating system (Windows/Linux/Mac) browser within a Swing window that is integrated into a Java application. No other actions would be performed other than opening a given URL. Currently, we open a new browser window because the Java embedded browsers have been insufficient. However, from a user interaction standpoint this is less than desirable.

I'm curious if a solution for this was part of the 1.6 Java release. So far my google searching has not turned up anything of note. Are there any closed-source libraries that do this?

Upvotes: 11

Views: 11911

Answers (5)

Fuangwith S.
Fuangwith S.

Reputation: 5764

use JEditorPane

A text component to edit various kinds of content. By default, the following types of content are known: text/plain, text/html and text/rtf

or Lobo

Lobo is an open source web browser that is written completely in Java.

Upvotes: 1

progdeveloper
progdeveloper

Reputation:

MozSwing it is free or JxBrowser or JExplorer ($500)

Upvotes: 1

Michael Borgwardt
Michael Borgwardt

Reputation: 346250

WebRenderer is a commercial product that does this, and does it well. However, the last time I checked it was also pretty expensive (they wanted a $2 per-client fee for a large number of client, and a several $1000 support contract).

Upvotes: 1

Sergey Borodavkin
Sergey Borodavkin

Reputation: 285

We use JDIC as well and it works for us in Windows; however, configuring it to work in *nix/OS X can be a pain, as it simply utilizes a platform-native browser (supports IE and Mozilla), while on Linux/Mac you may have neither - that's the problem.

Upvotes: 1

ykaganovich
ykaganovich

Reputation: 14964

JDIC

Upvotes: 5

Related Questions