在Mac OS X上的Java应用程序中嵌入Web浏览器

时间:2021-08-19 17:28:13

I'm developing a cross-platform desktop application using Java. My application requires displaying a couple of websites from within my application and not to open them in any full fledged web browser like Safari or Firefox. I've found some Java libraries and projects for accomplishing this for Windows like The DJ Project, JDIC for Processing and [Lobo Browser]. But most don't support Mac OS X or maybe I can't figure out how to run them on a Mac. I managed to run Lobo Browser as a simple frame and load a page, but the project is about 2 years old and doesn't render pages properly. Please suggest if there is any cross-platform library available for embedding a web browser in a java program or even mac only library would do.

我正在使用Java开发一个跨平台的桌面应用程序。我的应用程序需要在我的应用程序中显示几个网站,而不是在Safari或Firefox等任何完整的Web浏览器中打开它们。我找到了一些用于Windows的Java库和项目,如DJ Project,JDIC for Processing和[Lobo Browser]。但大多数人不支持Mac OS X,或者我无法弄清楚如何在Mac上运行它们。我设法运行Lobo Browser作为一个简单的框架并加载一个页面,但该项目大约2年,并没有正确呈现页面。请建议是否有任何跨平台库可用于在Java程序中嵌入Web浏览器,甚至可以使用mac。

1 个解决方案

#1


0  

Take a look at Qt Jambi, a java API for the Qt toolkit, specifically the WebKit package. Full DOM rendering with or without a GUI.

看看Qt Jambi,Qt工具包的Java API,特别是WebKit包。带或不带GUI的完整DOM渲染。

#1


0  

Take a look at Qt Jambi, a java API for the Qt toolkit, specifically the WebKit package. Full DOM rendering with or without a GUI.

看看Qt Jambi,Qt工具包的Java API,特别是WebKit包。带或不带GUI的完整DOM渲染。