Reputation: 13594
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
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
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
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