Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java based Swing Browser should support JavaScript

In my company, I am implementing a java based html browser. I found a lot of tools to generate complete browsers only in Swing which are looking like Mozilla. But I was not able to find a browser which supports JavaScript. The browser I will implement should execute JavaScript inside the HTML sides.

Do you know of a tool that supports this? Or do you know of a parser which pairs the javascript to something I can use inside the html browser?

I know that the eclipse plugins can handle javascript, but I can not use AWT in my project.

Thanks for your help.

like image 251
Markus Lausberg Avatar asked Dec 13 '25 22:12

Markus Lausberg


2 Answers

You don't want to build this yourself. Fortunately, there are a number of open source javascript engines you might be able to adapt.

like image 106
Joel Coehoorn Avatar answered Dec 15 '25 21:12

Joel Coehoorn


I'd look at Lobo. It sounds like just want you want. It has a HTML Renderer and parser, and some support for Javascript. If it's missing a feature of Javascript that you need, it seems like it would easier to contribute to Lobo, instead of reinventing the wheel.

like image 39
Steve K Avatar answered Dec 15 '25 21:12

Steve K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!