• 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

Need for JavaFx

 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Hendrik,
With Swing (and effectively applets) already existing, what was the need for a new UI Toolkit? What features does JavaFX provide which are not possible with Swing?
 
author
Posts: 32
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Swing and JavaFX are both Java based UI Toolkits. With Swing you can create business application because it contains all the basic controls that are needed: Tables, Lists, Buttons, Textfields, etc.
But Swing was created over 10 years ago and therefore a lot of concepts are old and new functionality can't be integrated without breaking the API. Amy Fowler blogged about this some years ago when JavaFX was in the beginning: http://amyfowlersblog.wordpress.com/2010/09/21/a-heartfelt-ramble-on-swing-javafx/

As said JavaFX contains a lot of new stuff. Here are some of the cool new features:
- CSS can be used to style controls and application
- Animation API
- Graph controls
- 3D Support
- touch support
- all components are vector based and not pixel based
- Media support (play videos)
- a Webview with WebKit backend to integrate rich HTML5 websites
- etc.
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a nice summary of JavaFX features on stackoverflow.
If you are familiar with Swing, then just reviewing the feature list will make it obvious where the feature sets for JavaFX and Swing differ.
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Hendrik, John!
 
reply
    Bookmark Topic Watch Topic
  • New Topic