嵌入浏览器(safari,firefox,chrome)+ Java中的Access DOM [英] Embed Browser (safari, firefox, chrome) + Access DOM in Java
问题描述
有没有办法:
-
在某种Java框架中嵌入浏览器视图(我在Mac上) OSX)
embed a browser view in Java Frame of some sort (I'm on Mac OSX)
告诉浏览器呈现页面
让Java有权访问DOM(即删除节点,创建新节点,使用CSS样式创建新节点,更改节点的innerHTML)...
have Java have access to the DOM (i.e. delete nodes, create new nodes, create new nodes with CSS styles, change innerHTML of nodes) ...
谢谢!
我相信WebKit将是最简单的,但我并不依赖它。 Chrome的Safari,Firefox等核心渲染引擎都没问题。
I believe WebKit will be the easiest, but I'm not attached to it. The core rendering engine of say, Safari, Firefox, of Chrome will be fine.
推荐答案
看看这个: http://www.teamdev.com/jxbrowser/ ,或尝试 Qt WebKit 通过 Qt Jambi 。
Take a look at this: http://www.teamdev.com/jxbrowser/, or try Qt WebKit through Qt Jambi.
更新:这看起来也非常好: http://sourceforge.net/projects/mozswing/
Update: this looks very good too: http://sourceforge.net/projects/mozswing/
这篇关于嵌入浏览器(safari,firefox,chrome)+ Java中的Access DOM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!