Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does JavaFX compare to Flash and Flex? [closed]

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.

like image 432
Yaba Avatar asked Nov 10 '08 09:11

Yaba


1 Answers

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.
like image 105
David Koelle Avatar answered Sep 23 '22 22:09

David Koelle