将 JavaFX 1.x 脚本转换为 JavaFX 2 Java 代码

发布于 2024-12-26 10:51:10 字数 59 浏览 2 评论 0原文

是否有任何工具可以将现有的 JavaFX 1.x 应用程序转换为 JavaFX 2.x Java 代码?

Is there any tool to convert existing JavaFX 1.x applications to JavaFX 2.x Java code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瀟灑尐姊 2025-01-02 10:51:10

目前还没有公开存在这样的工具,而且不太可能创建这样的工具。

Oracle确实创建了一个用于Oracle内部开发的原型工具,但他们决定不再继续开发它。

来自 JavaFX 项目负责人 Richard Bair 的引述(来自下面链接的论坛主题):

Richard:很抱歉,我们没有工具可以帮助进行迁移。我们的
迁移 JavaFX 库和示例的经验是
这并不是一个简单的解决方案——即使是迁移助手
写得非常不完整。有些人发现它非常有用,但是
我只是手工完成的。

PDVieira:如果有机会您可以向我发送您的 FxTranslator 帮助程序
创建了吗?

理查德:希望我可以,但不幸的是我们无法发送它
(其实我手头连代码都没有,不是写的(Eamonn
做了)并且需要获得法律批准才能开源,而且它
可能甚至不再编译或工作,因为该平台已经
自去年 12 月以来发生了显着变化)。

您可以参考这些论坛主题进一步讨论此问题:

No such tool currently exists publicly and it is unlikely that one will be created.

Oracle did create a prototype tool which was used in internal Oracle development, but they decided not to continue development on it.

Quotes from the JavaFX project lead Richard Bair (from the forum threads linked below):

Richard: I'm sorry to say we have no tool to help with the migration. Our
experience from migrating the JavaFX Library and samples is that there
wasn't really an easy solution -- even the migration assistant that
was written was very incomplete. Some folks found it very useful, but
I just did it by hand.

PDVieira: Any chance you could send me the FxTranslator helper you've
created?

Richard: Wish I could, but unfortunately we cannot send it along
(actually, I don't even have the code on hand, didn't write it (Eamonn
did) and it would need to get legal approve to open source it, and it
probably doesn't even compile or work anymore because the platform has
change significantly since last December).

You can refer to these forum threads which discuss this further:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文