Javafx: Java applet in a Webview component

2019-07-04 07:03发布

问题:

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