基于Java的Swing Browser应该支持JavaScript

时间:2021-08-29 22:21:42

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.

在我的公司,我正在实现一个基于java的html浏览器。我发现很多工具只能在Swing中生成完整的浏览器,看起来像Mozilla。但我找不到支持JavaScript的浏览器。我将实现的浏览器应该在HTML端执行JavaScript。

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?

你知道一个支持这个的工具吗?或者你知道一个解析器将javascript配对我可以在html浏览器中使用的东西吗?

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

我知道eclipse插件可以处理javascript,但我不能在我的项目中使用AWT。

Thanks for your help.

谢谢你的帮助。

3 个解决方案

#1


2  

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.

我看看Lobo。这听起来只是想要你想要的。它有一个HTML呈现器和解析器,以及一些对Javascript的支持。如果它缺少你需要的Javascript功能,似乎更容易贡献给Lobo,而不是重新发明*。

#2


3  

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

你不想自己建立这个。幸运的是,您可以调整许多开源JavaScript引擎。

#3


1  

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

在我的公司,我正在实现一个基于java的html浏览器。

Good God, why?

天哪,为什么?

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

也就是说,java.net上的这个页面讨论了一些选项;你可以更广泛地搜索它。

#1


2  

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.

我看看Lobo。这听起来只是想要你想要的。它有一个HTML呈现器和解析器,以及一些对Javascript的支持。如果它缺少你需要的Javascript功能,似乎更容易贡献给Lobo,而不是重新发明*。

#2


3  

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

你不想自己建立这个。幸运的是,您可以调整许多开源JavaScript引擎。

#3


1  

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

在我的公司,我正在实现一个基于java的html浏览器。

Good God, why?

天哪,为什么?

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

也就是说,java.net上的这个页面讨论了一些选项;你可以更广泛地搜索它。