Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing vs. javafx

 
fady zohdy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I started learning swing and awt from headfirst java book a couple of days ago. Yesterday I learned that there is something called javafx that is replacing swing. What should I do?! Should I start learning javafx and dump swing?! I don't want t waste time learning something that's gonna be replaced. N.B. I am learning java to build desktop and mobile apps.
 
Tim Cooke
Sheriff
Pie
Posts: 3210
142
Clojure IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaFX certainly is the new kid in town for building Java GUI systems, and if I were interested in learning about Java GUI systems then JavaFX would be my first choice. However, there a plenty of commercial applications out there using Swing so in terms of employment your time learning Swing will not be wasted.
 
John Damien Smith
Ranch Hand
Posts: 299
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is just an opinion, but yes, learn JavaFX instead of Swing/AWT and learn it using a Java 8 version.

You can search the threads on this forum for references on resources for learning JavaFX.

Your primary source of material should be the official JavaFX documentation:
http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic