Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to the main content of the first official update after the release of JavaFX 11 and the split of JDK

2025-03-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Computer Software News >

Share

Shulou(Shulou.com)05/31 Report--

­JavaFX 11 has released JavaFX, a powerful collection of graphics and multimedia processing toolkits that allow developers to design, create, test, debug, and deploy rich client programs as cross-platform as Java. Because the JavaFX library is written as Java API, JavaFX application code can call API from various Java libraries, for example, JavaFX applications can use the Java API library to access local system functions and connect to server-based middleware applications.

­JavaFX can customize the program appearance, and CSS separates the appearance and style from the business logic implementation, so developers can focus on coding. It is worth noting that starting with JDK 11, the JavaFX module is provided separately from JDK.

­JavaFX 11 requires either JDK 10 (must be an OpenJDK version) or JDK 11, and JDK 11 is recommended.

­the main contents of this update are as follows:

­important updates

­JavaFX module specifies: because JDK no longer contains JavaFX, the JavaFX module used by the application must be explicitly included, as detailed in: https://openjfx.io/openjfx-docs/.

­add API to customize the steps of the Spinner control to repeat timing. Before you can modify the value step in JavaFX 11, you must press the mouse over the Spinner control arrow button for a default duration, and two new properties "initialDelay" and "repeatDelay" have been added in JavaFX 11 to configure this operation.

The ­javafx.* module is now loaded by the application class loader and no longer has permissions by default. Applications that want to run with Security Manager enabled need to use "- Djava.security.policy" to specify custom policy files and grant all permissions to each javafx.* module.

­the default GTK version is updated from v2 to v3. GTK 3 will be used on Linux platforms where gtk3 libraries exist.

­Properti

­added: public FX Robot API has been added to support simulated user interactions, such as typing on the keyboard, using the mouse and capturing graphical information.

­remove: FX Media has removed support for libavcodec 53 and 55.

­in addition, the announcement provides solutions to some of the following common problems:

­OpenJDK 11 environment, JavaFX crashes when Wayland is enabled on Ubuntu 18.04.

­when running with JDK 10, Swing interop requires a standard export configuration.

­Swing interop fails when running with a security manager with a separate SDK.

­Swing interop becomes invalid when using a small jdk image created by jlink.

­check the update log for details.

­download address:

­https://openjfx.io/index.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Computer Software News

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report