Javafx: Java applet in a Webview component

2019-07-04 06:22发布

Is there a way to show a Java Applet in a JavaFX WebView component? Is it not a supported functionality?

3条回答
ゆ 、 Hurt°
2楼-- · 2019-07-04 06:58

Javafx Webview does not support applet, in fact, the netscape.JSObject in plugin.jar is deliberately crippled. You can, however, roll up your applet support code, you may be interested in webfx https://github.com/brunoborges/webfx, there are some applet support sample code

查看更多
疯言疯语
3楼-- · 2019-07-04 07:11

No, you can't display an applet in a WebView.
WebView does not support plugin technology such as applets.

查看更多
Juvenile、少年°
4楼-- · 2019-07-04 07:14

You can use sun.applet.AppletViewer to open applet through webview. Go through the AppletViewer you can understand how you will do.

Here is the URL you found something - http://www.docjar.com/html/api/sun/applet/AppletViewer.java.html

I hope it will help you

查看更多
登录 后发表回答