• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX Script or JavaFX 2.0?

 
Darryl Burke
Bartender
Posts: 5136
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5136
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic