Tuesday Oct 27, 2015

JavaOne 2015: JavaFX Layout - Everything You Wanted to Know [CON4355]

On Tuesday, October 27, Kevin Rushforth (Consulting Member of Technical Staff, Oracle) and Chien Yang (Principal Member of Technical Staff, Oracle) present JavaFX Layout: Everything You Wanted to Know. This session shows how layout works in JavaFX, focusing on standard layouts such as HBox, VBox, StackPane, and GridPane, and describes how to create custom layouts.

For more information about JavaFX layouts, see Working with Layouts in JavaFX.

Friday Sep 25, 2015

Creating Games with JavaFX 8: Case Study

Make the most of your JavaOne experience by registering for a Java University course. Courses take place on Sunday, October 25, and offer several deep-dive training seminars that cover the most popular Oracle technology topics. Don’t miss this opportunity to maximize your JavaOne experience in 2015.

Can JavaFX 8 be used to create games? Is game development different from traditional software development? This course uses JavaFX 8 to explore these questions and demonstrate many features of the JavaFX API. Discover an inside perspective of the JavaFX 8 game Java Puzzle Ball at various stages of the development process. Learn about classes, objects, inheritance, and lambda expressions (new to Java 8) through the visual context of JavaFX.

Register for this Java University course here: https://www.oracle.com/javaone/java-university.html. Java University registration is separate from JavaOne registration.

- Nick Ristuccia

Tuesday Mar 03, 2015

JDK 8u40 Released!

JDK 8u40 has been released and is available from the Java SE Downloads page. See the JDK 8u40 Update Release Notes for details.

Java Tutorial Updates

The Java Tutorial has been updated to include a new lesson in the Deployment trail that describes how to use the Java packaging tools to generate self-contained applications. Self-contained applications are Java applications that are bundled with the JRE that is needed to run. These applications are installed on a user's local drive and launched in the same way as native applications. See Deploying Self-Contained Applications for more information.

JDK Tools Enhancements

JDK 8u40 contains many tools enhancements. See Tools Enhancements in JDK 8 for details.

JavaFX Enhancements

Starting with the JDK 8u40 release, JavaFX controls are enhanced to support assistive technologies, meaning that JavaFX controls are now accessible. In addition, a public API is provided to allow developers to write their own accessible controls.

Accessibility support is provided on Windows and Mac OS X platforms and includes:

  • Support for reading JavaFX controls by a screen reader
  • JavaFX controls are traversable using the keyboard
  • Support for a special high-contrast mode that makes controls more visible to users.

JDK 8u40 also includes new JavaFX UI controls; a spinner control, formatted-text support, and a standard set of alert dialogs.

Spinner Control

A Spinner is a single line text field that lets the user select a number or an object value from an ordered sequence. See javafx.scene.control.Spinner class for more information.

Formatted Text

A new TextFormatter class provides text formatting capablity for subclasses of TextInputControl (for example, TextField and TextArea). See javafx.scene.control.TextFormatter class for more information.


The Dialog class allows applications to create their own custom dialogs. In addition, an an Alert class is also provided, that extends Dialog, and provides support for a number of pre-built dialog types that can be easily shown to users to prompt for a response. See javafx.scene.control.Dialog, javafx.scene.control.Alert, javafx.scene.control.TextInputDialog, and javafx.scene.control.ChoiceDialog classes for more information.

Commercial Features

Application Class Data Sharing (AppCDS):

Application Class Data Sharing (AppCDS) extends CDS to enable you to place classes from the standard extensions directories and the application class path in the shared archive. This is an experimental feature and not licensed for commercial use. See the -XX:+UseAppCDS option in the java launcher tool page.

Cooperative Memory Management

Starting with JDK 8u40, the notion of "memory pressure" has been added to the JDK. Memory pressure is a property that represents the total memory usage (RAM) on the system. The higher the memory pressure, the closer the system is to running out of memory. This is an experimental feature and not licensed for commercial use.

As a reaction to increased memory pressure, the JDK will try to reduce its memory usage. This is mainly done by reducing the Java heap size. The actions the JDK will take to reduce memory usage may lead to reduced performance. This is an intentional choice.

The pressure level is provided by the application through a JMX MXBean using a scale from 0 (no pressure) to 10 (almost out of memory). To enable this feature, the jdk.management.cmm.SystemResourcePressureMXBean should be registered. The memory pressure is then set using the "MemoryPressure" attribute.

A new command line flag -XX:MemoryRestriction that takes one of the arguments 'none', 'low', 'medium', or 'high', is also available. This flag will set the initial pressure in the JDK and will work also in cases where the MXBean is not registered.

Cooperative Memory Management requires the G1 GC (-XX:+UseG1GC). This feature is not compatible with the flag -XX:+ExplicitGCInvokesConcurrent.

New Commercial Flags

Two new VM options are now available for commercial license holders:

  • -XX:+ResourceManagement
  • -XX:ResourceManagementSampleInterval=value (milliseconds)

For more information, see the java tool page.

New MSI Installer Documentation

The Microsoft Windows Installer (MSI) Enterprise JRE Installer Guide is now available. The MSI Enterprise JRE Installer requires a commercial license for use in production. To learn more about commercial features and how to enable them, visit http://www.oracle.com/technetwork/java/javaseproducts.

Java Flight Recorder(JFR) Enhancements

It is now possible to enable Java Flight Recorder at runtime. For details, see the Java Flight Recorder Runtime Guide. Java Flight Recorder requires a commercial license for use in production. To learn more about commercial features and how to enable them, visit http://www.oracle.com/technetwork/java/javaseproducts.

Troubleshooting Guide Updates

The Troubleshooting Guide has been updated with new content for Troubleshooting using JMC, Troubleshooting Memory Leaks using JFR, and Troubleshooting Performance Issues using JFR.

Wednesday Oct 08, 2014

Java SE Documentation Survey 2014

The Java SE documentation team is conducting a brief survey at the following URL:


Answering it will provide us with key insights into the kinds of developer documentation that you (our readers) are looking for. Thank you in advance. We value your input very much!

Tuesday Sep 30, 2014

JavaOne 2014: JavaFX 8, New and Noteworthy

Monday at JavaOne, Kevin Rushforth and Steve Northover of Oracle presented JavaFX 8: New and Noteworthy at JavaOne. This talk described features added to JavaFX 8.

For more information on JavaFX 8 features, see:

JavaFX documentation is available at http://docs.oracle.com/javafx

Tuesday Mar 18, 2014

Learn More About Enhancements in JavaFX 8

The JavaFX documents were updated for release 8. To symbolize JavaFX integration into Java SE, the JavaFX 8 documentation index has moved to a new URL at http://docs.oracle.com/javase/8/javase-clienttechnologies.htm. The old URL at http://docs.oracle.com/javafx will send you to this new page. You can still access the JavaFX 2 documentation at http://docs.oracle.com/javafx/2/.

The JavaFX writers have always provided many sample applications to go with their tutorials. These samples contain source code, resources, and NetBeans IDE project files, and the accompanying tutorial explains the code. Now you can view a list of the samples on a single index page, see which tutorial they belong to, and download any that you like. Moreover, JavaFX applications are shown in tutorials using a new visual theme.

Get familiar with JavaFX 8 enhancements to WebView’s HTML5 support in the Adding HTML Content to JavaFX Applications tutorial, review Getting Started with JavaFX 3D Graphics, and learn how to embed Swing content in JavaFX applications.

The JavaFX UI Components tutorial comes with the following new chapters:

  • Tree Table View - introduces the TreeTableView user interface component, a control designed to visualize an unlimited number of rows of data broken out into columns.
  • Date Picker - discusses how the DatePicker control can be used in JavaFX applications to enable selection of a day from the given calendar.
  • JavaFX UI Controls on the Embedded Platforms - describes the specifics of using JavaFX UI controls in the embedded environments.

The Handling Events tutorial provides a new chapter to illustrate the Drag-and-Drop feature using the PaperDoll application.

See the JDK 8 Release Notes for detailed information about this release.

Jim Weaver has presented a screencast titled What's New for JavaFX in Java SE 8 during the Java 8 Launch Webcast.

JDK 8 Is Released!

Java SE 8 has gone live! Download it from the Java SE Downloads page.

For this release, the Java SE 8 landing page has been revamped and the Java Tutorials have been updated.

See the JDK 8 Release Notes for detailed information about this release. Highlights include the following:

Download JDK 8 today and try it out!

Tuesday Jan 14, 2014

JDK 7u51 and JavaFX 2.2.51 Documentation Updates

The Java Development Kit 7 Update 51 (JDK 7u51) release with JavaFX 2.2.51 is available and can be downloaded from the Java SE Downloads page. For information about this release, see the JDK 7u51 Release Notes.

Documentation has been updated for the following changes to the JDK:

  • The Exception Site List feature provides a way for users to run Java applets and Java Web Start applications that do not meet the latest security requirements. RIAs that are hosted on a site in the exception site list are allowed to run with the applicable security prompts.

  • Unsigned and self-signed RIAs are blocked when the security level is set to Very High or High. Also, the Permissions attribute that was added for 7u25 is now required when the Security Level slider in the Java Control Panel is set to either Very High or High. See the Security section of the Java Control Panel documentation for information on the criteria for allowing or blocking a RIA.

  • When signing a JAR file, time stamping the signature is recommended. A warning is shown if the signature is not time stamped. See Signing JAR Files for information.

  • When installing the JRE on Windows, or when the JRE is automatically updated on Mac OS X, users are prompted to restore the security prompts that they previously chose to hide by selecting the "Do not show this again" option.

Minor improvements have been made to some of the JavaFX tutorials, and the JavaFX API documentation has been updated for the 2.2.51 release.

For all tutorials, guides, and API documentation, see Java SE Technical Documentation and JavaFX 2 Documentation.

Tuesday Oct 29, 2013

Audio for JavaOne 2013 Conference Sessions

The audio recordings are now available for some of the conference sessions held at JavaOne 2013 in San Francisco. The recordings are free and you can find them on oracle.com.

More sessions will become available, so check back for updates!

Tuesday Oct 15, 2013

JDK 7u45 and JavaFX 2.2.45 Documentation Updates

The Java Development Kit 7 Update 45 (JDK 7u45) release with JavaFX 2.2.45 is available and can be downloaded from the Java SE Downloads page. For information about this release, see the JDK 7u45 Release Notes.

The Java Control Panel now has an option for restoring the security prompts that were hidden when the option to not show the prompt again was selected. See the documentation for the Security tab for more information on the Restore Security Prompts option.

New JAR file manifest attributes are available to provide additional security for your applets and Java Web Start applications. See JAR File Manifest Attributes for Security for information on the Application-Name, Application-Library-Allowable-Codebase, and Caller-Allowable-Codebase attributes. The launchable examples in the Java Tutorial have been updated to use these new attributes, where applicable.

Note: The Permissions attribute that was added for 7u25 is now required when the Security Level slider in the Java Control Panel is set to Very High.

In the Java Tutorial, the JAXP trail has a new lesson on Processing Limits.

Minor improvements have been made to some of the JavaFX tutorials, and the JavaFX API documentation has been updated for the 2.2.45 release.

For all tutorials, guides, and API documentation, see Java SE Technical Documentation and JavaFX 2 Documentation.

Thursday Sep 26, 2013

JavaOne 2013: How to Create Your Own JavaFX 8 Controls

Today at JavaOne, Gerrit Grunwald, the senior software engineer of Canoo Engineering AG, will give a presentation titled Be Creative and Create Your Own JavaFX 8 Controls.

This session is supposed to demonstrate various ways to create custom controls including extending an existing control, extending a region, or creating a more library-style control with custom control, skin, behavior, and CSS file. It also will show how to avoid some common performance problems.

You can learn some additional tips for customization of UI controls from the JavaFX UI Controls tutorial. Also, see Skinning JavaFX Applications with CSS and the JavaFX CSS Reference Guide for more information about available CSS styles and how to apply them to JavaFX application UI.

Wednesday Sep 25, 2013

JavaOne 2013: Developing Custom UI Controls

Today, David Grieve will be giving a hands-on-lab to teach how to develop a custom UI control from the ground up. This lab will examine the different approaches to building and customizing a UI control in JavaFX.

In addition to this lab, you can review the JavaFX UI Controls tutorial and the chapter titled Customization of UI Controls. This chapter describes the aspects of UI control customization and summarizes some tips and tricks provided by Oracle to help you modify the appearance and behavior of UI controls.

If your application involves graphical charts, review the Styling Charts with CSS chapter of the JavaFX Charts tutorial to learn more about customization of the JavaFX charts.

Tuesday Sep 24, 2013

JavaOne 2013: Productive UI Design with JavaFX Scene Builder

Today at JavaOne 2013, JavaFX Scene Builder UI Designer, Mo Chicharro, will hold a session, Productive UI Design with JavaFX Scene Builder [CON4260], to show how quickly you can prototype a UI layout using the JavaFX Scene Builder tool. He will also share good practices to help you design with FXML and CSS.

To learn more about JavaFX Scene Builder, see the Scene Builder documentation set which was recently updated for the recently released JavaFX Scene Builder 1.1. This set includes the new document, Using JavaFX Scene Builders with Java IDEs.

JavaOne 2013: JavaFX 3D - The Third Dimension

At JavaOne 2013 on Monday, September 23,  Chien Yang and Kevin Rushforth (both Members of Technical Staff at Oracle) held a session entitled  JavaFX 3D: The Third Dimension [CON7810] . They talked about the new JavaFX 8 3-D features, such as meshes, lights, materials, the coordinate system, the movable camera, and the depth buffer. They also talked about how to mix 2-D and 3-D objects in a single scene graph.

The JavaFX 8 Developer Preview document, Getting Started with JavaFX 3D Graphics, was released especially for JavaOne to introduce the 3D features included in the JavaFX 8 Developer Preview release. It also steps you through the creation of a 3D sample application that uses some of the 3D features.

Monday Sep 23, 2013

JavaOne 2013: JavaFX WebView Enhancements

Today, Per Bothner and Anton Tarasov are about to give a BOF entitled Enhanced HTML5 Support and Other Improvements in JavaFX WebView. They will be talking about the new features of the WebView component including the recently added support for HTML5 Web Workers, WebSocket, Web storage, and Web fonts as well as many performance improvements.

Specially for JavaOne, the WebView tutorial was updated to cover the newly supported features of HTML5 and additional printing capabilities of JavaFX WebView. See the following chapters for more information:


Blog about Java technology documentation and news about Java releases.


« June 2016