What to know before starting to learn JavaFX? [clo

2020-06-15 05:39发布

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.

标签: java javafx
2条回答
狗以群分
2楼-- · 2020-06-15 05:58

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.

查看更多
Root(大扎)
3楼-- · 2020-06-15 06:16

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/

查看更多
登录 后发表回答