Really quick and dirty solution for embedding webkit in a Swing UI?

java, swing, webkit

Solution

JWebPane is allegedly going to do this for you, but it's vaporware for the time being. Your best bet might be to take a look at the WebKit component in Qt Jambi and use the Swing bridge to stick it in a Swing app.

Problem

I am looking for a really quick and dirty solution for embedding webkit in a Swing application. What I am looking for is a way to implement a panel that contains a webkit browser running some JavaScript that will be able to do one or more of the following: - Call a Java function of the containing application - Send JSON objects to the containing application I would also like to have access to the DOM from my Java code.

Original source