In this post I would like to write a simple educational program on JavaFX and answer some basic questions of those people who do not know what JavaFX is and why it can be useful + some basic technical questions of a general nature.
1. What is JavaFX?
JavaFX is another programming language + runtime to it. This language is compiled and strongly typed.
')
2. What happens after compiling JavaFX code?
The JavaFX compiler (javafxc) generates Java bytecode as .class files, which can then be executed by a Java virtual machine (JVM).
3. Where can programs written in JavaFX run?
Using JavaFX, you can create client-side applications that run either in a browser (inside a Java applet) or directly on a client machine (through Java Web Start). It also assumes the ability to run applications on mobile phones (so far mostly on Windows Mobile devices with JavaFX runtime installed) and TVs with Java (see JavaFX TV).
4. What is proposed to do in JavaFX?
JavaFX is designed primarily for creating user interfaces (UI) and all sorts of multimedia applications. The primary purpose of JavaFX is to create Rich Internet Applications (RIA). The programming language itself was originally created based on the convenience of describing the UI on it. In many ways, the purpose of JavaFX is similar to Flash and Silverlight, but there are many differences in details and performance.
Of course, no one bothers to do applications on JavaFX without a UI ... you can try to use any tool for other purposes and nobody can “cure” you for it.
5. Can Java be used with JavaFX?
Yes, you can mix code in these two languages. After building, you get java classes, so they will all be executed inside the JVM. All classes from the main Java SE are also available from JavaFX.
6. JavaFX applications run in a browser, and under them, a whole Java is available ... how about security?
"Security" is provided the same as for conventional Java applets. Applications must be digitally signed in order to be able to work with files on the user's disk or to try to open some kind of network sockets. Otherwise, the user will be asked if he wants to open access to his disk to this application.
7. Has anything significant been written on JavaFX yet?
There are a number of enterprise applications on JavaFX. From publicly available, the site of the Olympics in Vancouver, as well as the JavaFX Authoring Tool (not yet published, while in the work, so do not say that it is so publicly available, but time will tell).
I think the remaining questions can be found in the official FAQ on the JavaFX website.