This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JavaFX / Swing/ JSF  RSS feed

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gail and Paul,

Now Sun has 3 technologies which I believe overlap somewhere.
As far as I understand, Swing is for pure desktop based application which can access remote database but it is a pure thick client technology.
JSF is a rapid application development technology which gives swing like feature and event life cycle for the web applications.
And we have JavaFX which is also I think a technology like Flex which gives you swing like behavior in a web application

Apart from that we already have plethora of Ajax based technology which gives RIA features.

What kind of applications do you think are best to be developed in JavaFX instead of Swing or JSF or Adobe Flex for that matter?
Please correct me if I am wrong somewhere.


Regards,
Paras
 
Sheriff
Posts: 21461
96
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paras Jain wrote:Please correct me if I am wrong somewhere.


http://faq.javaranch.com/java/SwingIsAProperNoun
 
Author
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paras,

I think your summary is very accurate.

Sun has said that JavaFX is not meant to replace Swing. That said, there are many applications that you could implement in either technology. In general, the JavaFX implementation will be quicker and take less code, since JavaFX does much of the Swing-required plumbing for you. So, when would you use Swing? When JavaFX?

JavaFX has some Swing-based controls. You can also create wrappers to use any of the Swing controls that JavaFX has not yet implemented. (See this excellent article: Mixing JavaFX and Swing.)

JavaFX excells at 2D graphics, animation, and effects. If you were instead using Swing, you'd have to use the Java 2D API to implement that. You don't want to go there.

JavaFX has its own "native" UI controls that will work in the "common" environment. This includes tv and mobile as well as desktop. JavaFX Swing controls will only work in the desktop environment.

What does JavaFX offer above Adobe Flex or Ajax?

JavaFX has full access to the Java API and it lets you build well-engineered MVC applications.
 
Paras Jain
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Gail for the reply
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!