Is there a way to embed a browser in Java? [closed

2018-12-31 20:14发布

Is there a way to embed a browser in Java?

15条回答
闭嘴吧你
2楼-- · 2018-12-31 20:30

I have successfully opened a browser from Java using SWT. You can find code examples of how to use SWT to open a Browser window. It's very easy to do.

查看更多
回忆,回不去的记忆
3楼-- · 2018-12-31 20:32

You could use SWT for your GUI. Its Browser control allows you to embed IE, Mozilla or Safari (depending on the platform you're running in) with little pain.

查看更多
闭嘴吧你
4楼-- · 2018-12-31 20:33
临风纵饮
5楼-- · 2018-12-31 20:33

You could also try the JWebBrowser from DJ Native Swing: http://djproject.sourceforge.net/ns

查看更多
无色无味的生活
6楼-- · 2018-12-31 20:36
素衣白纱
7楼-- · 2018-12-31 20:38

If you need a pure Java solution then you can try JWebEngine. It render HTML 4 very good. You can use it in an applet, Java webstart and on any platform. The using is very simple.

查看更多
登录 后发表回答