Java based Swing Browser should support JavaScript

断了今生、忘了曾经 提交于 2019-12-21 20:49:19

问题


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.


回答1:


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.




回答2:


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




回答3:


In my company, I am implementing a java based html browser.

Good God, why?

That said, this page at java.net discusses some options; you could search it more extensively.



来源:https://stackoverflow.com/questions/357562/java-based-swing-browser-should-support-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!