• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaFX / Swing/ JSF

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


http://faq.javaranch.com/java/SwingIsAProperNoun
 
Author
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Gail for the reply
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic