Kathir
Kathir

Reputation: 6196

WebKit in Java application

Is it possible to integrate a webkit engine in a java application.

Here is my thinking, I would like to implement my User Interface using javascript and business logic in Java and want to communicate back and forth between the js and java. I have looked at titanium and chromiumembedded. But i dont get the complete picture. Can anyone give me a good explanation of webkit being used in a standalone application.

Upvotes: 4

Views: 11700

Answers (2)

pram
pram

Reputation: 1513

JavaFX 2 has an embedded browser component based on Webkit. There is a tutorial provided by Oracle here.

Upvotes: 5

PlagueEditor
PlagueEditor

Reputation: 429

There are a few solutions, the main one being for SWT. See here for the SWT solution. There was a similar question here referring to SWING.

Edit: Oh my, I can't believe I forgot Lobo, a browser written in Java. More Specifically, their Browser API providers support for embedding. This seems to be the better solution for cross-platform and possibly stability. I'm not 100% sure on the first two solutions' development. Hope that provides some insight.

Upvotes: 5

Related Questions