Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I learn Swing before learning JavaFx?

Tags:

java

javafx

Does it make sense to start learning JavaFx if I do not have any background in UI programming? Is it more advisable to learn Swing first and then move on to JavaFx ?

I tried the getting started tutorial on JavaFx website in Netbeans and the code looked extremely complicated to me. I am wondering if JavaFx is too advanced for a beginnner GUI developer.

like image 485
Rahul Avatar asked Feb 19 '09 03:02

Rahul


3 Answers

Looking at the JavaFX tutorial I would say that:

  1. you don't need to know Swing to use JavaFX
  2. if you find the JavaFX tutorial hard learning Swing won't be easier

If you have no programming background at all then starting in any language is going to be a challenge. If you know a little programming in a language then it is still going to be a challenge.

My advice is to dive in and work at it. A quick google search (JavaFX Hello World) has a number of hits... I took a quick look at this one and I'd say start with it.

like image 78
TofuBeer Avatar answered Sep 19 '22 03:09

TofuBeer


I don't think knowing swing will give you much of an upper hand with JavaFX. JavaFX seems more like scripting rather than actual java programming. You can learn JavaFX fine without swing.

like image 44
John T Avatar answered Sep 20 '22 03:09

John T


From what I understand the JavaFX libraries do not have that many proper UI components but since JavaFX allows you to use any Swing component it might be useful to know Swing. This will probably be less true and less true as JavaFX matures.

like image 20
willcodejavaforfood Avatar answered Sep 20 '22 03:09

willcodejavaforfood