Fast JavaFX educational program

    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 at all what JavaFX is and why it can come in handy + 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 the JavaFX code?
    The JavaFX compiler (javafxc) generates Java bytecode as .class files, which can then be executed by the Java Virtual Machine (JVM).

    3. Where can programs written in JavaFX run?
    Using JavaFX, you can create client-side applications that run either in the browser (inside the Java applet) or directly on the client machine (via Java Web Start). It also provides the ability to run applications on mobile phones (so far mainly on Windows Mobile devices with JavaFX runtime installed) and Java TVs (see JavaFX TV).

    4. What is suggested to do on JavaFX?
    JavaFX is primarily intended for creating user interfaces (UIs) and all kinds 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 detail and performance.
    Of course, no one bothers to make JavaFX applications without a UI ... you can try to use any tool for other purposes, and no one can "heal" you for that.

    5. Can I use Java with JavaFX?
    Yes, you can mix code in these two languages. After the build, we get java classes, so that they will all be executed inside the JVM. From JavaFX, all classes from core Java SE are also available.

    6. JavaFX applications run in the browser, and underneath the whole Java is available ... how about security?
    “Security” is the same as for regular Java applets. Applications must be digitally signed in order to be able to work with files on the user's disk or trying to open some network sockets. Otherwise, the user will be asked if he wants to open access to his disk to this application.

    7. Have you already written anything significant in JavaFX?
    JavaFX has a number of enterprise applications. From the public, the site of the Olympiad in Vancouver, as well as the JavaFX Authoring Tool (has not yet been published, while it’s at work, so not to say that it is so publicly available, but time will tell).

    Other questions I think can be found in the official FAQ on the JavaFX website.

    Also popular now: