Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie question about Java FX

 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

I havent tried Java FX since there was no support for linux until recently, and i dont really understand what Java FX is for ?
But from googling around, i've seen Java FX is compared with other technologies like Adobe Air and Silverlight. And from the screenshots, it seems to me that Java FX is like another GUI app, like Applet or JavaWebStart's GUI app.
I wonder what's the reason for the birth of Java FX when Swing seems to be able to do the GUI stuffs .. ?
Why choose Java FX over Swing ? Or do i completely misunderstand everything here ?

Regards,
Albert Kam
 
vaibhav mishra
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my understanding JavaFX was developed with designers mind and is mainly targeted for RIA market, the language syntax is easy to pick up with a way to use graphics format and much better support for media then what is provided by JMF, so basically Swing is for Desktop Application but if you want a fancy interface with cool animation and immersive user experience , JavaFX is a way to go, also it is much easier to code in JavaFX using declarative syntax which is inherent to JavaFX script then Swing
 
Eric Bruno
author
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to read through some of our responses to questions similar to yours, but JavaFX makes it easy to build very rich GUI applications that run equally well on your desktop, mobile device, and TV set-top box. Being based on Java, you can leverage all of your existing Java knowledge and code base/libraries, and its powerful paradigms and expressive language make it very easy to build GUI applications when compared to Swing. Try it and I'm sure you'll find it's incredibly simple to build otherwise complex interfaces with JavaFX.
 
Albert Kam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

Hello and thank you all for your enlightening replies.
I'll dig into JavaFX pretty soon, seems to be very exciting now ..

Anyway i found this link on PacMan game using JavaFX for those who're interested :
http://weblogs.java.net/blog/editors/archives/2009/06/pacman_in_javaf.html



Regards,
Albert Kam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic