简体   繁体   English

到JavaFX [1.3]还是没有?

[英]To JavaFX [1.3] or not?

We are starting a new Desktop application and considering using javafx but we are a bit confused given the recent announcement by oracle that javafx scripting is not going to be developed further. 我们正在开始一个新的桌面应用程序并考虑使用javafx,但我们有点困惑,因为oracle最近宣布javafx脚本不会进一步开发。

Since we cannot wait for javafx 2.0, is it a good idea to use the version 1.3 (which) or should we look at a different technology? 由于我们不能等待javafx 2.0,使用版本1.3(哪个)或者我们应该看一个不同的技术是一个好主意?

Your opinion will be very much appreciated. 非常感谢您的意见。

JavaFX 2.0 has been released General Availability http://javafx.com and http://javafx.com/downloads/all.jsp JavaFX 2.0已发布通用可用性http://javafx.comhttp://javafx.com/downloads/all.jsp

and the roadmap has been updated http://javafx.com/roadmap/ 并且路线图已更新http://javafx.com/roadmap/

You should have a close look at the license for JavaFX, particularly the provisions for distribution if you are developing a desktop application. 您应该仔细查看JavaFX的许可证,特别是在开发桌面应用程序时的分发规定。

My understanding of the current 1.3 license is that distribution of the run-time is prohibited, except through Java Web Start. 我对当前1.3许可证的理解是禁止分发运行时,除非通过Java Web Start。 This is pretty much a deal-breaker for us on the desktop. 对于我们桌面来说,这几乎是一个交易破坏者。

There has been an ever increasing trend away from desktop applications to web applications recently, and the advantages are large. 最近从桌面应用程序到Web应用程序的趋势不断增加,并且优势很大。 Browsers are becoming more sophisticated, so you can do many desktop like features via a browser (and if you are considering JavaFX, then HTML based technologies may give you everything you need). 浏览器变得越来越复杂,因此您可以通过浏览器执行许多类似桌面的功能(如果您正在考虑使用JavaFX,那么基于HTML的技术可能会为您提供所需的一切)。

Also, a web application gives you the flexibility to update your code without having the user update it for you. 此外,Web应用程序使您可以灵活地更新代码,而无需用户为您更新代码。 Most browsers also allow you to launch in application mode (eg the Chrome -app switch), which locks down the browser to specifically only point at your application. 大多数浏览器还允许您以应用程序模式启动(例如Chrome -app开关),这会将浏览器锁定为仅指向您的应用程序。

If you truely want a real desktop experience though, then Swing or SWT should be sufficient for your needs. 如果您真的想要真正的桌面体验,那么Swing或SWT应该足以满足您的需求。

另一种选择是Pivot

Java FX2 allows you to leverage existing Java technology. Java FX2允许您利用现有的Java技术。 I don't know how you would manage file access etc with html5-javascript. 我不知道如何使用html5-javascript管理文件访问等。 I am using JavaFX2 currently for my project and am happy with it. 我目前正在为我的项目使用JavaFX2,并对此感到满意。

No doubt that the javafx is improving further and oracle is extending functionality of javafx. 毫无疑问,javafx正在进一步改进,oracle正在扩展javafx的功能。 recently oracle announced early release of java 8 in which javafx is inbuilt and is having excellent controls. 最近oracle宣布早期发布了java 8,其中javafx是内置的,并且具有出色的控件。

Rumors of JavaFX script's death have been greatly exaggerated. 关于JavaFX脚本死亡的谣言被夸大了。 It lives on, and is now called Visage . 它继续存在,现在称为Visage

While development is not incredibly active, over the last 30 days there have been 9 check-ins from 4 different people. 虽然开发并不是非常活跃,但在过去的30天里,已经有来自4个不同人员的9次签到。

"Wounded"? “受伤”? Sure. 当然。 "Dead"? “死”? Nope. 不。

You could also use adobe flex . 你也可以使用adobe flex This is the technology that appears to be winning this war right now. 这项技术似乎正在赢得这场战争。 I really liked the idea of using JavaFX with existing java work. 我真的很喜欢将JavaFX用于现有的java工作。 I scrapped the idea because it would be really irresponsible to a) use a dead technology that looks like Oracle will not support in the future b) waiting on vaporware is not a good strategy (their JavaFX 2.0 future api). 我放弃了这个想法,因为a)使用看似甲骨文将来不会支持的死技术b)等待使用蒸发器并不是一个好的策略(他们的JavaFX 2.0未来api)将是非常不负责任的。

Someone also mentioned apache pivot . 有人还提到了apache pivot Not sure how mainstream that is or what it's future support will be. 不确定主流是什么或未来的支持是什么。 According to their about it is a mainstream project: 据他们了解这是一个主流的项目:

"Pivot joined the Apache Incubator in January 2009 and graduated as a top-level Apache project in December 2009. It is currently driven entirely by the software development community." “Pivot于2009年1月加入Apache孵化器,并于2009年12月作为顶级Apache项目毕业。它目前完全由软件开发社区推动。”

I would run, not walk, away from JavaFX 1.3... 我会跑步,而不是走路,远离JavaFX 1.3 ......

JMHO JMHO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM