10

I read about the advantages of JavaFX over Swing(that is not the point of discussion) and I would like to learn JavaFX. But later I got confused between the JavaFX script and other things like XML, etc... I don't have a clear picture of it yet. I want to know what all things like basic information and programming/markup languages one must know before giving a try at JavaFX.

  • You can do everything directly in Java if you want to. You can also use FXML files to configure your UI layout (only very basic knowledge of XML required) but you don't have to. – assylias May 13 '14 at 10:12

2 Answers2

23

Well, as far as I am concerned, I would say nothing is mandatory, before you start learning Javafx. Just a small knowledge of JAVA would be enough (just the basics)

For Javafx learning resources, Oracle has one of the best available resources, enriched with lucrative examples, which will make your Journey of learning Javafx fantastic.

The fxml files are basically the UI which can be written using XML and can be loaded in your code. This makes your application follow the MVC rule. Though initially, I would recommend to spend sometime constructing your UI using java code only.

For more info on FXML

Java vs JavaFX Script vs FXML. Which is better way of programming in JavaFX?

Tutorials on Javafx

http://docs.oracle.com/javase/8/javase-clienttechnologies.htm

For Beginners, Getting Started with JavaFX is very important !

http://docs.oracle.com/javase/8/javafx/get-started-tutorial/jfx-overview.htm#JFXST784

Tutorial on Scene Builder i.e. making fxml files for your application,

http://docs.oracle.com/javase/8/scene-builder-2/get-started-tutorial/overview.htm

Tutorial on FXML

https://docs.oracle.com/javase/8/javafx/fxml-tutorial/

Community
  • 1
  • 1
ItachiUchiha
  • 36,135
  • 10
  • 122
  • 176
1

I started learning JavaFX last summner and it is really great and easy to use. I don't think you should know anything before start learning. A little bit xml knowladge can be beneficial but I don't think it is necassary because JavaFX secene builder generates .fxml files generically. So you can directly start using it.

xxlali
  • 996
  • 2
  • 15
  • 43
  • Thank your for your answer. But I want to learn the language properly and thoroughly. I don't know much about the Scene Builder, but is it difficult to build application without using it? –  May 13 '14 at 10:11
  • Please share some good resources for learning JavaFX. –  May 13 '14 at 10:14
  • No you don't have to use scene builder and you can use it directly in Java but SceneBuilder really makes jobs easier. I recommand it to use but as I sail you can also code it in Java. Besides, if you use Eclipse, you can download e(fx)clipse from eclipse market to have JavaFX libraries. The book I have learned JavaFX is this; http://www.amazon.com/JavaFX-Beginners-Guide-ebook/dp/B004QWY5YA – xxlali May 13 '14 at 10:19
  • xxlali, one more question. :) That book which you suggested mentions JavaFX script which is not in use now, I think. Is it safe to use that book even today to learn JavaFX? –  May 19 '14 at 08:31
  • When I study, I have never seen JavaFX script. Maybe editions are different so I don't know :) – xxlali May 19 '14 at 12:06
  • [link](http://www.amazon.in/JavaFX-Beginners-Guide-J-F-Dimarzio/dp/0071077340/) . This is the link I used. I guess the editions are same. It has all about .fx files which are script files bro. :/ –  May 20 '14 at 01:54
  • I am sorry for giving wrong resource. Now, I checked and http://www.amazon.com/JavaFX-2-0-Introduction-Example-Experts/dp/1430242574 is the book I have used. I am sorry again. :( – xxlali May 21 '14 at 10:46