my dog learned polymorphism*
The moose likes JavaFX and the fly likes JavaFX Script or JavaFX 2.0? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX Script or JavaFX 2.0?" Watch "JavaFX Script or JavaFX 2.0?" New topic
Author

JavaFX Script or JavaFX 2.0?

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4571
    
    5

I've been reading that JavaFX Script is end-of-life. Does the book JavaFX: A Beginners Guide cover programming with JavaFX 2.0, a public preview of which is expected next month?


luck, db
There are no new questions, but there may be new answers.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

I think JavaFX Script would continue to exist and JavaFX 2 would have Java APIs for creating JavaFX components so that Java developers need not learn a new scripting language for JavaFX.


Mohamed Sanaulla | My Blog
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Darryl Burke wrote:I've been reading that JavaFX Script is end-of-life. Does the book JavaFX: A Beginners Guide cover programming with JavaFX 2.0, a public preview of which is expected next month?


I read through this link you had posted in a different thread- I didn't read in the road map that JavaFX Script is end-of-life. But may be its something conveyed indirectly- through the integration with Java? But for people who would want to design the UI in JavaFX would have to learn Java now? Earlier just the knowledge of JavaFX Script would be enough to design the UI (not giving any functionality to it)
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4571
    
    5

the knowledge of JavaFX Script would be enough to design the UI (not giving any functionality to it)

JavaFX script certainly isn't limited to designing a GUI, it is entirely capable of providing functionality. As an example, here's a script I wrote in answer to a question on another forum:
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

What I meant was that one could learn just JavaFX Script to create the UI layout. Adding functionality could be done by a Java programmer who knows JavaFX or may be by the person who designed the UI. But with removal of JavaFX Script- person would have to learn Java to create UI based on JavaFX.
Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 46

If you're comfortable with Class-Style JavaSE Programming, then you should choose JavaFX 2.0. If you're more comfy with script language like scala, JRuby, or anything else, you should choose JavaFX script. Because, I don't know if JavaFX 1 will be developed anymore.


Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

Yosi Pramajaya wrote:If you're comfortable with Class-Style JavaSE Programming, then you should choose JavaFX 2.0. If you're more comfy with script language like scala, JRuby, or anything else, you should choose JavaFX script. Because, I don't know if JavaFX 1 will be developed anymore.


JavaFX Script it no longer supported officially. JavaFX 2 is API which can be used along with Java, just like any other Java API. Along with this there are a lot of other major enhancements.

But if you a a fan of JavaFX Script, then I would recommend you to look at Visage

There's FXML which provides a declarative way to build the Java object graph- Preferably used for creating the JavaFX UI.
 
GeeCON Prague 2014
 
subject: JavaFX Script or JavaFX 2.0?