How can I display a javascript webpage inside a We

2019-09-11 14:11发布

I am trying to display a twitterBox inside a webview in a JavaFx 2.0 web application. Is there any know problems with trying to do this? When I launch the application from my desktop the script shows up but from the browser it doesn't load the script.

标签: javafx-2
1条回答
贪生不怕死
2楼-- · 2019-09-11 15:03

You need to sign your application.

Being run in browser JavaFX applications falls under restrictions of Java plugin and you twitterBox can't connect to another domain twitter.com.

If you are using NetBeans you can self-sign application in Project Properties. Otherwise look here: http://docs.oracle.com/javafx/2.0/deployment/javafx_ant_task_reference001.htm#CIAJGAFH

查看更多
登录 后发表回答