• 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
Posts: 3457
163
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: 321
19
  • 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!