I used SWT Browser in my Java project.
Now I do this from Java code like below:
I'd recomment to just go with
You're analogy with the Swing listener is flawed, because it's not as easy as you make it out to be:
I don't think the gain in performance balances out the downsides.