Book Image

Mastering JavaFX 10

By : Sergey Grinev
5 (1)
Book Image

Mastering JavaFX 10

5 (1)
By: Sergey Grinev

Overview of this book

: JavaFX 10 is used to create media-rich client applications. This book takes you on a journey to use JavaFX 10 to build applications that display information in a high-performance, modern user interface featuring audio, video, graphics, and animation. Mastering JavaFX 10 begins by introducing you to the JavaFX API. You will understand the steps involved in setting up your development environment and build the necessary dependencies. This is followed by exploring how to work with the assets, modules, and APIs of JavaFX. This book is filled with practical examples to guide you through the major features of JavaFX 10. In addition to this, you will acquire a practical understanding of JavaFX custom animations, merging different application layers smoothly, and creating a user-friendly GUI with ease. By the end of the book, you will be able to create a complete, feature-rich Java graphical application using JavaFX.
Table of Contents (15 chapters)

Working with Jigsaw modules

One of the most prominent features of Java9 was the long-awaited modularization. This feature, called Jigsaw, split a monolithic Java into separate modules. They can be used to create a custom subset of JRE, as is required by specific applications, and impose better rules on the visibility of Java packages/modules.

There are about 80 modules in Java10. Here is the list of modules related to JavaFX:

  • javafx.base: Basic JavaFX elements: Properties, bindings, collections, and events
  • javafx.graphics: Visual elements: Scenegraph API, shapes, colors, effects, animations, CSS, and so on
  • javafx.controls: All JavaFX Controls and corresponding APIs
  • javafx.fxml: FXML API
  • javafx.media: Video and audio content support
  • javafx.swing: API to intermix Swing and JavaFX components
  • javafx.web: WebView component

For almost every JavaFX application, you'll first need...