1. New JavaFX Features in Java 8
(and an intro to Lambdas)
James Weaver
Java Technology Ambassador
Oracle Corporation
@JavaFXpert
james.weaver@oracle.com
80. New JavaFX Features in Java 8
(and an intro to Lambdas)
James Weaver
Java Technology Ambassador
Oracle Corporation
@JavaFXpert
james.weaver@oracle.com
Editor's Notes
Welcome to the latest and greatest version of the Java platform, Java 8
The Java 8 Launch site is a great place to find resource videos on Java 8.
The Java 8 Launch site is a great place to find resource videos on Java 8.
Modularisation of the Java platform. Since project Jigsaw was pushed back to Java SE 9 some form of modularisation was needed to make the Java platform more flexible. To do this we now have three compact profiles that subset the standard class libraries to allow applications that only need certain APIs to run in a smaller resource footprint.Compact 1 is the smallest subset of packages that supports the Java language. Includes logging and SSL. This is the migration path for people currently using the compact device configuration (CDC)Compact 2 adds support for XML, JDBC and RMI (specifically JSR 280, JSR 169 and JSR 66)Compact 3 adds management, naming, more securoty and compiler support.None of the compact profiles include any UI APIs, they are all headless.See also JEP 161
Java SE Embedded is a binary distribution of Java SE that runs on the ARM processor architecture version 6 and 7 and supports hardware floating point accelerationOne of the reference platforms is the Raspberry Pi providing a very low cost way to develop and test Java SE Embedded applications.
JavaFX 8 includes a new stylesheet, named Modena. This provides a more modern look to JavaFX 8. The older, Caspian, stylesheet can still be used.
Java FX 8 includes improvements to support for full screen mode. For applications like kiosks and terminals it is now possible to configure special key sequences to exit full screen mode, or even to disable the ability to exit full screen mode altogether,
JavaFX 8 includes a printing API, so any node from the scenegraph can be printed. This feature is currently only supported on the desktop version of JavaFX, it is not currently supported in the embedded version.
JavaFX 8 includes a few new controls. Most notable of these is the date picker, which has been something people have been asking for. A combination table and tree view has also been included.
As more devices are supporting the concept of touch interfaces JavaFX supports these types of interface using specific APIs. Gestures like swipe, scroll, zoom and rotate are supported as event listeners and touch specific events can be detected as well as multiple touch points.
JavaFX 8 adds comprehensive support for 3D interfaces. All the features you would expect ot find are available. Basic shapes that can be combined to form more complex shapes as well as the ability to construct shapes of arbritary complexity using meshes and trangle meshes.PhongMaterials are used to define how the surface of a 3D shape is rendered and these can include texture mappings.Both lighting sources and camera types and positions can be specified,
Welcome to the latest and greatest version of the Java platform, Java 8