aspose file tools*
The moose likes JavaFX and the fly likes Newbie question about Java FX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Newbie question about Java FX" Watch "Newbie question about Java FX" New topic
Author

Newbie question about Java FX

Albert Kam
Ranch Hand

Joined: Oct 18, 2007
Posts: 58
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


Be nice !
vaibhav mishra
Ranch Hand

Joined: Jun 18, 2008
Posts: 168
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


SCJP
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
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

Joined: Oct 18, 2007
Posts: 58
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
 
wood burning stoves
 
subject: Newbie question about Java FX