JavaFX 与 Flash 和 Flex 相比如何?

发布于 2024-07-08 19:35:27 字数 186 浏览 4 评论 0原文

我对 Flex 很了解,但也开始使用 Java FX。 我有点困惑。 Java FX 似乎更关注低级绘图操作和动画。 更少创建像 Flex 这样的标准 UI。

那么JavaFX 是否更像Flash 而不是Flex?

另一方面,JavaFX 还支持 Swing 组件和数据绑定,这使得它看起来更像 Flex。

I know Flex pretty good but also started to use Java FX. I am a little bit confused. Java FX seems to focus more on low level drawing operations and animations. Less on creating standard UIs like Flex.

So is JavaFX more like Flash than Flex?

On the other side JavaFX also supports Swing components as well as data binding, which makes it appear more like Flex.

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

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

发布评论

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

评论(7

遗心遗梦遗幸福 2024-07-15 19:35:27

我认为 JavaFX 更像 Flex,因为 JavaFX 更多的是关于构建应用程序而不是动画(我认为这是 Flex 和 Flash 之间的敏感区别之一)。

我认为 JavaFX 和 Flex 是富互联网应用程序编程的未来继承者。 它们都旨在扩展 RIA 的可能性范围。

我认为 JavaFX 的最大好处之一是您只需导入即可使用现有的 Java 业务逻辑

一些语言功能,例如绑定作为数据类型的持续时间,是范式转变的,因为它们使某些功能成为可能并且易于使用:

  • 绑定:连接两个值在一起,这样您就可以在一个值更新时自动更新另一个值。 示例:“名称:绑定 textfield.getValue”。 比设置观察者模式来监视变量的更改要容易得多。
  • 持续时间可用作数据类型:“var frameDelay = 5ms”。 在处理动画时,将持续时间作为语言的一个组成部分似乎是理所当然的。

I think JavaFX is more like Flex, because JavaFX is more about building applications than animations (which is, I gather, one of the sensitive distinctions between Flex and Flash).

I think of JavaFX and Flex as the future heirs to Rich Internet Application programming. They're both intended to stretch the realm of what's possible with RIA.

One of the biggest benefits of JavaFX that I see is that you can use your existing Java business logic by simply importing it.

Some of the language features, such as binding and duration as a data type, are paradigm-shifting, because they make certain functionality possible and readily available:

  • Binding: Connecting two values together, so you can automatically update one value when the other updates. Example: "name: bind textfield.getValue". Much easier than setting up Observer patterns to watch for changes to variables.
  • Duration can be used as a data type: "var frameDelay = 5ms". Having Duration as an integral part of the language seems like a no-brainer when dealing with animations.
音栖息无 2024-07-15 19:35:27

我想补充几点,

  1. Flex 比 JavaFX 稳定得多,JavaFX 相当新。

  2. JavaFX 语法真的很糟糕,它不必要地复杂,Flex 哪里是纯 xml,可以轻松阅读和理解,我不明白是什么让 java 人认为不使用 xml(如 silverlight 和 flex),而是创建新语言语法会震惊世界吗? 新的语法意味着新的学习曲线。

  3. Flex 在闪存上运行,全球 95% 的安装率,与 JavaFX + Java 运行时最少 30 MB 相比,Flash 下载量仅为 1.2MB,这对于发布商而言太大了。

I would like to add few points,

  1. Flex is far more stable then JavaFX, JavaFX is fairly new.

  2. JavaFX syntax is really bad, its unnecessarily complex, where else flex is pure xml, one can read and understand easily, I didnt understand what made java guys think that instead of using xml (like silverlight and flex), making new language syntax will shock the world? New syntax means new learning curve.

  3. Flex runs on flash, 95% installations world wide, only 1.2MB of Flash download compared to JavaFX + Java runtime of minimum 30 mb, this is too big consideration for publisher.

你的他你的她 2024-07-15 19:35:27

刚刚看到 Chet Haase 的这篇文章,他以前从事 Java FX 工作曾在 Sun 工作,但现在在 Adob​​e on Flex 工作。

Just saw this posting by Chet Haase, who previously worked on Java FX at Sun, but now works for Adobe on Flex.

懵少女 2024-07-15 19:35:27

最近我使用了Adobe Flex 4和Java Fx 1.3.1,我同意它们都是非常强大的丰富的互联网图形应用程序开发工具。

我对 Adob​​e Flex 4 的看法是,它是非常简单的设计工具。 它通过自动生成代码来处理许多编程部分。 所以我的投票是“简单工具”。 如果您对数据源进行任何更改,更改标签标识符等,它会生成代码并更正代码内的任何引用。

Java Fx 1.3.1 与 Adob​​e Flex 相比稍微困难一些,但在外观和感觉、“图形效果”以及 Java 兼容性方面这是最好的。

Adobe Flex 4 构建器不是免费的
Java Fx 1.3.1 + NetBeans 是免费的。 这对于自由开发者社区来说有很大的不同。

同样,此比较不适用于“桌面应用程序”与“移动应用程序”与“Web 应用程序”。

在打印、将应用程序下载到 excel 或 csv 等方面,两者都存在进一步的限制。

Recently I used both Adobe Flex 4 and Java Fx 1.3.1, I agree both are very powerful Rich internet graphic application development tools.

My take on Adobe Flex 4 is, it is very easy design tool. It take care of lot of programming part by automatically generating the code. So my vote is "Easy Tool". If you make any change to data source , change a label identifier etc, it generates code and corrects any reference inside the code.

Java Fx 1.3.1 is little more difficult as compared to Adobe Flex, but there is no comparison the look and feel, "Graphical Effects" and this best in terms of Java compatibility.

Adobe Flex 4 builder is not free
Java Fx 1.3.1 + NetBeans is free. This makes a lot of difference in freelance developer community.

Again this comparison not applicable for "Desktop application" vs "mobile application" vs "web application"

There are further limitations for both in terms of Printing, download application to excel or csv, etc..

寒尘 2024-07-15 19:35:27

我想说它更像 Flash - 或者至少它是将类似 Flash 的功能引入 Java。 不要忘记 Flex 是构建在 Flash 之上的。 据我所知,JavaFX 脚本与 ActionScript 非常相似,而与 MXML 完全不同。 Sun 似乎强调了视频等内容的重要性以及使用行业标准设计程序中的矢量图形的能力。

我认为 Flash 的美妙之处在于能够创建您自己的、美观的 UI 组件,而 Flex 则在于使用标签来布局标准组件。 再说一遍,它更像 Flash。

I'd say it's more like Flash - or at least it's about bringing Flash-like abilities to Java. Don't forget that Flex is built on top of Flash. JavaFX script from what I've seen is quite similar to ActionScript, and not at all like MXML. Sun seem to be stressing the importance of things like video and the ability to work with vector graphics from industry standard design programs.

I think beauty of Flash is the ability to create your own, nice-looking UI components, whereas Flex is about laying out standard components using tags. So again, it's more like Flash.

北城孤痞 2024-07-15 19:35:27

我是一名 Flex 开发人员,具有 Flash 背景 - 没有 Java 经验。 所以,我通常会跳过这个线程,但我刚才碰巧遇到了这篇文章:

http://www.insideria.com/2008/11/is-client-side-java-losing-gro.html

它包含关于 Java 的简短讨论和 Flex,但最适合您的问题的是,Yaba,一个名为 Sharendipitous 的小组发布的一系列文章的链接,介绍了他们从 Java 到 Flex 的转换 - 为什么他们做出了这个决定,他们是如何做到的,等等。

I'm a Flex developer with background in Flash - no Java experience. So, I'd normally skip this thread, but I happened to run across this post, just now:

http://www.insideria.com/2008/11/is-client-side-java-losing-gro.html

It contains a short discussion on Java and Flex, but what is most appropriate to your question, Yaba, is the link to a series of articles a group called Sharendipitous is posting about their conversion from Java to Flex - why they made the decision, how they did it, etc.

2024-07-15 19:35:27

聆听 Adob​​e 詹姆斯·沃德 (James Ward) 的采访。

采访 Adob​​e 的 James Ward

Listen to the interview with Adobe's James Ward.

Interview with Adobe's James Ward

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