Is there a way to show a Java Applet in a JavaFX WebView component? Is it not a supported functionality?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No, you can't display an applet in a WebView.
WebView does not support plugin technology such as applets.
回答2:
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:
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