Compared with Java's performance on the server and web, the desktop has always been Java's weakness, so Sun launched JavaFX in 2008 to make up for the shortcomings of desktop software, but the effect was unsatisfactory.
JavaFX is mainly dedicated to rich client development to make up for the shortcomings of swing. It mainly provides graphics libraries and media libraries, supporting audio, video, graphic, animation, 3D, etc., while using modern CSS methods to support interface design. At the same time, XUI method is used to design the UI interface in XML method to achieve the separation of display and logic. It is indeed somewhat similar to Android in this regard. (Recommended learning: Java video tutorial)
New features of JavaFx8
New modern theme: Modena
The new Modena theme replaces the original Caspian theme. However, in the start() method of Application, you can continue to use the Caspian theme through setUserAgentStylesheet(STYLESHEET_CASPIAN).
JavaFX 3D
provides 3D image processing API in JavaFX8, including Shape3D (Box, Cylinder, MeshView, Sphere subclass), SubScene, Material, PickResult, LightBase (AmbientLight and PointLight subclasses), SceneAntialiasing, etc. The Camera class has also been updated. More information can be found in the JavaDoc.
Rich text
Strengthened rich text support
Date controlDatePicker
Public API for CSS structures
CSS styling is a major feature of JavaFX
CSS has been specifically implemented in a private API (com.sun.javafx.css package )
Multiple tools (such as Scene Builder) require the CSS public API
Developers will be able to define custom CSS styles
JavaFX Scene Builder 2.0
Visual tool to accelerate the development of JavaFX graphical interface. JavaFX Scene Builder is like NetBeans. It configures the interface through drag and drop. After the interface is completed, it is saved as an FXML format file. This file describes the object configuration in XML. It is then handed over to the JavaFX program for processing, thus reducing the difficulty of writing the interface directly in JavaFX. JavaFX Scene Builder 2.0 adds a new JavaFX Theme preview function. Menu "Preview" → "JavaFX Theme" to select different themes.
Summary
Compared with AWT and SWING, The advantages of JavaFX are obvious. All major mainstream IDEs already support the development of JavaFX. The best tool is NetBeans. With the benefits brought by lambda, JavaFX's event processing has become much simpler. Whether JavaFX can perform well depends on Dear everyone, as long as we use JavaFX more, JavaFX will become better and better, and this is true for any language, THE END.
For more Java-related technical articles, please visit Java Development Tutorialcolumn for learning!
The above is the detailed content of What is javafx used for?. For more information, please follow other related articles on the PHP Chinese website!

Start Spring using IntelliJIDEAUltimate version...

When using MyBatis-Plus or other ORM frameworks for database operations, it is often necessary to construct query conditions based on the attribute name of the entity class. If you manually every time...

Java...

How does the Redis caching solution realize the requirements of product ranking list? During the development process, we often need to deal with the requirements of rankings, such as displaying a...

Conversion of Java Objects and Arrays: In-depth discussion of the risks and correct methods of cast type conversion Many Java beginners will encounter the conversion of an object into an array...

Solutions to convert names to numbers to implement sorting In many application scenarios, users may need to sort in groups, especially in one...

Detailed explanation of the design of SKU and SPU tables on e-commerce platforms This article will discuss the database design issues of SKU and SPU in e-commerce platforms, especially how to deal with user-defined sales...

How to set the SpringBoot project default run configuration list in Idea using IntelliJ...


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools