8

swing和java里嵌入浏览器

 3 years ago
source link: https://blog.csdn.net/KimmKing/article/details/43805797
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Swing

jxbrowser

DJ NativeSwing

非常强大,可以使用IE、 Firefox, XULRunner or Webkit
- http://gongqi.iteye.com/blog/754231
- http://sourceforge.net/projects/djproject/

Java里的几个库

如果在java里不考虑swing环境的话,直接在swt里很简单,当然ie更不是问题:

qt-java binding-webkit,这个可以试试,有可能需要再封装下

各种方式的讨论

http://stackoverflow.com/questions/145863/best-java-swing-browser-component

firefox的swing嵌入方式

http://stackoverflow.com/questions/2020854/embed-firefox-browser-in-java-swing
http://www.webrenderer.com/
http://sourceforge.net/projects/mozswing/

纯网页的渲染

如果是纯粹是网页,可以用这个独立的渲染引擎,支持渲染出来图片、pdf等:
https://code.google.com/p/flying-saucer/

XULRunner方式

http://wiki.netbeans.org/EmbeddedBrowser

非java环境

非java的原生环境的话,简单的多,
http://www.magpcss.net/cef_downloads
http://blog.csdn.net/hideforever/article/details/38435873
或者直接用qt-webkit


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK