Transparent background in the WebView in JavaFX

后端 未结 6 1951
后悔当初
后悔当初 2020-12-19 00:50

I need to show my webview content over parent background pattern. Is there a straightforward way to do it?

6条回答
  •  臣服心动
    2020-12-19 01:42

    This might be useful

    final com.sun.webkit.WebPage webPage = com.sun.javafx.webkit.Accessor.getPageFor(engine);
    webPage.setBackgroundColor(0);
    

提交回复
热议问题