如何在浏览器中的JavaFx 2.0中的WebView中显示javascript网页 [英] How can I display a javascript webpage inside a WebView in JavaFx 2.0 in Browser

查看:75
本文介绍了如何在浏览器中的JavaFx 2.0中的WebView中显示javascript网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在JavaFx 2.0 Web应用程序的Web视图中显示twitterBox.尝试这样做有什么已知的问题吗?当我从桌面启动应用程序时,脚本会显示出来,但是从浏览器中不会加载脚本.

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.

推荐答案

您需要对应用程序进行签名.

You need to sign your application.

要在浏览器中运行,JavaFX应用程序受到Java插件的限制,并且twitterBox无法连接到另一个域twitter.com.

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

如果使用的是NetBeans,则可以在项目属性"中对应用程序进行自签名. 否则,请看这里: http://docs.oracle.com/javafx/2.0 /deployment/javafx_ant_task_reference001.htm#CIAJGAFH

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

这篇关于如何在浏览器中的JavaFx 2.0中的WebView中显示javascript网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆