可以在网络中运行JavaFX桌面应用程序吗?

huangapple go评论126阅读模式
英文:

Can we run a JavaFX sesktop application in the web?

问题

我正在开发一个JavaFX应用程序。由于我的开发几乎已经完成,我想知道是否可以在Web浏览器中运行我们的JavaFX应用程序。我已经阅读了许多帖子,这些帖子都指出现在无法运行它。

对于是否可以在浏览器中运行桌面应用程序,很难确定,因为我阅读的所有帖子都比较旧。

英文:

I am developing a JavaFX application. As my development is almost complete, I would like to know if we can run our JavaFX app in a web browser. I have already read many posts that state that we can't run it now.

It is very confusing to determine whether we can run desktop application in the browser or not, as all posts I have read are old.

答案1

得分: 4

到目前为止所说的根本不是真的。你可以在浏览器中运行JavaFX应用,甚至无需任何插件等。只需在这里查看:https://www.jpro.one/

只需查看他们的演示页面https://www.jpro.one/?page=demos,即可看到许多众所周知的JavaFX示例。您可以在那里自行尝试。

英文:

What has been said so far is simply not true. You can run JavaFX application in a browser even without any plugin or such. Just have a look here: https://www.jpro.one/

Just look at their demo page https://www.jpro.one/?page=demos to see many well known JavaFX examples. You can try them out yourself there.

答案2

得分: 0

你还可以使用 webfx-projecthttps://github.com/webfx-project/webfx) 将其编译成类似 GWT 的 javascript。

其结果是一个单页面 Web 应用(仅 HTML + javascript),在浏览器中运行。从演示的外观来看,结果与原始的 JavaFX 应用程序完全一致。

英文:

You can also compile it to javascript a la GWT using webfx-project (https://github.com/webfx-project/webfx).

The result is a single-page webapp (only HTML + javascript) running in the browser. And by the looks of the demos the result is exactly as the original JavaFX application.

答案3

得分: 0

如果您使用 Swing 进行开发,我建议尝试使用 https://www.webswing.org

英文:

If you develop using swing, then i recommend trying https://www.webswing.org

huangapple
  • 本文由 发表于 2020年10月8日 19:35:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/64261686.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定