Monday Sep 23, 2013

JavaOne 2013: New Styling Capabilities for Custom Controls

Today at JavaOne 2013, Danno Ferrin is going to talk about Styling Your Custom Components with CSS in JavaFX.
In this session, you will learn how to use the new styling APIs to make your custom controls CSS-stylable.
You can also learn about Customization of UI Controls from the JavaFX UI Controls tutorial.
In addition, review Skinning JavaFX Applications with CSS and JavaFX CSS Reference Guide to get more information about the use of CSS styles and properties available in JavaFX.

Friday Sep 20, 2013

JavaFX 8 Developer Preview Documents Released!

JavaFX Documentation

JavaFX 8 Developer Preview Documents were published today on They comprise Getting Started with JavaFX 3D Graphics, Adding HTML Content to JavaFX Applications, and Embedding Swing Content in JavaFX Applications.

3D Graphics

A new document, Getting Started with JavaFX 3D Graphics, introduces the 3D graphics features that are included in the upcoming JavaFX 8 APIs. The features include 3D shapes, camera, lights, subscene, materials, and picking. The document also steps you through the creation of a simple 3D sample application, MoleculeSampleApp, that uses some of the 3D features discussed in the document.


The JavaFX WebView tutorial was extended to highlight the new features and improvements in the JavaFX 8 Web component. Review Supported Features of HTML5 for more information about additional HTML5 features including Web Sockets, Web Workers, and Web Fonts. Make the most of your WebView based applications with the new printing capabilities covered in Printing HTML Content.

Embedding Swing Content

The ability to embed JavaFX content in Swing applications has existed since the JavaFX 2.0 release. This tutorial introduces the SwingNode class available in the JavaFX 8 APIs that provides reverse integration. A new document describes how to embed Swing components in JavaFX applications and provides working applications that illustrate Swing buttons with HTML content embedded in a JavaFX application and interoperability between Swing and JavaFX buttons.

Tuesday Sep 10, 2013

JavaFX 2.2.40 Documentation Introduces the New Deployment Features

The JavaFX Deployment Guide was updated for the JavaFX 2.2.40 release to describe the new User JVM Arguments in the Ant tasks. Now you can create applications that allow users to override jvm options. For example, users can change the heap size for the application.

A new <fx:jvmuserarg> attribute has been added to <fx:platform>. This new attribute explicitly defines an attribute that can be overridden by users. For instance:

        <fx:jvmuserarg name="-Xmx" value="768m" />

For this specific case, -Xmx768m is passed as a default value for the heap size. The user can override this value in a user configuration file (on Linux and Mac) or in the registry in Windows.

For more information see the Deploying JavaFX Applications guide.

JavaFX Scene Builder 1.1 General Availability Released!

JavaFX Scene Builder 1.1 has reached General Availability (GA) and is now live!

You can download it from the JavaFX Downloads page.

This version includes support for the Linux platform, a new CSS Analyzer feature, and several usability improvements. For additional information on what's included with the release, see the Scene Builder 1.1 Release Notes.

The release also includes various updates to the Scene Builder 1.1 documentation, including the Using JavaFX Scene Builders with Java IDEs document.

JDK 7u40 and JavaFX 2.2.40 Documentation Updates

We are pleased to announce that the Java Development Kit 7 Update 40 (JDK 7u40) release with JavaFX 2.2.40 is live. You can download it from the Java SE Downloads page. Find more information about the new features in the JDK 7u40 Release Notes.

The JDK 7u40 release comes with various updates to the Java documentation.

  • Java Mission Control (JMC), a commercial feature now bundled with the JDK, is a suite of tools for monitoring, managing, and profiling your Java application. The guide documentation now includes the Java Mission Control User's Guide. You can also view the Java Mission Control Release Notes.

  • Java Flight Recorder (JFR), part of the JMC release, is also now bundled with the JDK. The guide documentation now includes the Java Flight Recorder Runtime Guide.

  • The Deployment Rule Set feature is for enterprises that manage their Java desktop environment directly, and provides a way for enterprises to continue using legacy business applications in an environment of ever-tightening Java applet and Java Web Start application security policies.

  • The Rich Internet Application Deployment Process section in the Deployment Guide provides a look at how the deployment of RIAs is handled.

  • Running rich Internet applications (RIAs) through a browser can be risky for users due to the malicious intent of others looking for vulnerabilities through which to access a user's system. Guidelines for Securing Rich Internet Applications, in the Deployment trail of The Java Tutorials, provide suggestions for making your RIAs less vulnerable to attack.

  • The JAXP trail in The Java Tutorial has been updated with a new JAXP 1.5 and New Properties lesson.

  • A new page, Language Tag Filtering and Lookup, has been added to the Setting the Locale lesson in the Internationalization trail of the Java Tutorial. This page discusses language tags, languages ranges, and language priority lists, which were introduced in JDK 7. It also includes sections about language tag filtering and language tag lookup, with plenty of examples that you can compile and run.

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

Thursday Jul 18, 2013

Learn Java Over The Summer

Hello Students! Hope you are enjoying your summer vacation! Summer trips are done, and I bet you've asked your parents the question they dread most - "I am bored. What do I do now?" :-)

If you are looking for ways to get the brain's juices flowing or just getting a head start on a high school AP computer science course, Java Tutorials are a great resource!

The following learning paths are perfect for students in middle school or high school.

Get set, go!

See the trails mentioned next for information about installing an IDE, learning the basics, and writing code with the help of code examples.

  • Getting Started – An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.
  • Learning the Java Language – Lessons describing essential concepts such as classes, objects, inheritance, datatypes, conditions, loops, control flow, and more. You can skip over the generics lesson at the beginning and come back to it later after you feel comfortable with the language.
  • Essential Java Classes – Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.

I am a visual person!

Check out JavaFX and SceneBuilder documentation to learn about developing animations and cool new apps!

I love it! What's next?

See the Java Tutorials Learning Paths page to learn more!

Good luck!

- Sowmya

Tuesday Jun 18, 2013

JDK 7u25 and JavaFX 2.2.25 Documentation Updates

We are pleased to announce that the Java Development Kit 7 Update 25 (JDK 7u25) release with JavaFX 2.2.25 is live. You can download it from the Java SE Downloads page. Find more information about the new features in the JDK 7u25 Release Notes.

The JDK 7u25 and JavaFX 2.2.25 releases come with various updates in the Java documentation.

Changes to the Java Rich Internet Applications Development and Deployment Guide:

  • Perform Certificate Checks and Check for Certificate Revocation Using sections describe new options for checking that a signing certificate has not been revoked before an applet or Java Web Start application is run.
  • Preventing a RIA from Being Repurposed describes the new Permissions and Codebase attributes for the JAR file manifest. These attributes are used to defend RIAs against unauthorized code repurposing. If the values in the manifest do not match the values in the JNLP file or the applet tag, the RIA is blocked.
  • Security Dialogs provides information on the prompts that are shown when a RIA is started.

Changes to the Deployment Trail of the Java Tutorials:

The File Chooser chapter of the UI Controls tutorial has become the main addition to the JavaFX documentation set. This chapter explains how to use the FileChooser class of the JavaFX API to enable navigating the file system. The document comes with several samples to explain how to open one or several files with the associated application, configure a file chooser dialog window, and save the application content. You can study the source code of the FileChooserSample application or download the NetBeans project with all the samples available in the JavaFX UI Controls tutorial. The WebView tutorial is reworked by the JavaFX 2.2.25 release to address changes in the WebViewSample application. Find the modified version at

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

Thursday Apr 25, 2013

JavaOne Russia: First-Hand Impressions

Alla Redko from the Java Documentation team shares her impressions of the two-day developer conference in Moscow.

All the JavaOne conferences start with the keynotes and this time wasn't an exception. The conference hall was crowded with the developers from different local and international IT companies. Grigori Labzovsky and Valery Lanovenko, the directors of St. Petersburg and Moscow Oracle sites, cordially greeted the participants and set the tone of the event. They passed the baton to Nandini Ramani who launched the JavaOne Russia conference and announced Oracle strategy and roadmap for the Java technologies. Technical keynote presentations led by Stephen Chin started with the Kiosk demonstration, continued by the overview of the Embedded technologies and an excellent success story of using Java ME 3.2, and concluded with the bright JavaFX 3D presentation given by Jim Weaver.

The Java Client Technologies track started shortly after the keynote with the presentation about the new FX Features in JDK 8 by Jim Weaver. He gave an overview of the new FX capabilities, demonstrated the Metronome demo, and explained how developers could benefit from using Lambda Expressions. Being a professional technology ambassador, Jim presented with passion and enthusiasm actively encouraging developers to join the FX community and participate in the OpenJFX project.

Sergey Troshin and Andrey Petushkov from St. Petersburg Development Center gave a presentation about the Java ME Embedded technologies. They talked about the diversity of mobile devices, introduced the benefits that Java has brought to the embedded world, and provided solutions for Java optimization for embedded environments. I was particularly pleased with the fact that Sergey and Andrey named the as the key source of information about Java ME technologies and products.

The second day of the conference started with Rapsberry Pi Nighthacking by Stephen Chin. Because the number of participants was relatively small, he turned the presentation into an informal discussion and live demonstration that were cordially received by the audience. Everyone in the hall was impressed with the demo run on Raspberry Pi and Chalkboard Electronics Touchscreen (tablet).

Jim Weaver continued presenting at the Java Client Technologies track and totally captivated participants with the presentation about powerful capabilities of JavaFX 3D. He showed how to create 3D primitive shapes, apply materials and textures, map images to the shapes. If you’re thinking about creating a cylindrical or cubic representation of the Earth, ask Jim!

Daniel Blaukopf, talked about Java SE on embedded devices. What impressed me the most was that his presentation had been developed totally in JavaFX (instead of traditional Microsoft Power Point) and run on a Raspberry Pi. Daniel gave an overview of the Java SE Embedded platform, demonstrated the supported devices and proof concepts, and showed a live JavaFX application running on a Raspberry Pi.

The last but not the least conference event was the hands-on-lab with the title “Playing to the Strength of JavaFX and HTML5” given by Jim Weaver. Because the hands-on-lab was based on the WebView tutorial that is part of JavaFX documentation, Jim invited me to assist. It has been a great and totally new experience helping about the lab and answering tricky but interesting questions.

The organizers of JavaOne Russia are going to publish the conference materials at the Content Catalog. Watch for updates at

— Alla Redko

Monday Apr 22, 2013

New documentation: Using Scene Builder with Java IDEs

A new JavaFX Scene Builder 1.1 developer preview documentation, Using Scene Builder with Java IDEs, has been published on It describes how you can use NetBeans IDE, Eclipse, and IntelliJ IDEA to easily create a JavaFX project and edit an FXML file with Scene Builder to build your application's UI.

You can download the latest Scene Builder 1.1 developer preview build from the JavaFX Scene Builder Developer Preview Download page. Use the Scene Builder 1.1 Developer Preview Release Notes for information about system requirements, installation information, and new or modified features.

Tuesday Apr 16, 2013

Documentation Updates with JDK 7u21 and JavaFX 2.2.21 Releases

The Java Development Kit 7 Update 21 (JDK 7u21) release, which includes JavaFX 2.2.21, is now live. You can download it from the Java SE Downloads page.

For information about this release, see the JDK 7u21 Release Notes, and the JavaFX 2.2.21 Release Notes.

With 7u21, it is recommended that all applications be signed, and it is possible to restrict signed applications to the security sandbox. Therefore, the use of "unsigned" to mean an application that ran in the security sandbox and "signed" to mean an application that ran with extended permissions, is no longer meaningful. The terminology in the Java Tutorials and the Java SE Guides has been changed to use "sandbox application" for applications that are restricted to the security sandbox, and "privileged application" for applications that have extended permissions.

In addition, the Java Tutorials contain the following changes:

  • With 7u21, users are prompted for permission to run applets and Java Web Start applications, called Rich Internet Applications or RIAs. The prompts contain information to help users make a more informed decision about whether to run an RIA. See User Acceptance of RIAs for more information.

  • Signed applets can be restricted to the security sandbox by using the permissions attribute for the <applet> or <object> element when the applet is invoked. See Deploying with the Applet Tag for more information.

  • Signing RIAs with a certificate from a trusted certificate authority is recommended, so Deploying an Applet and Deploying a Java Web Start Application include a step for signing the JAR file.

  • JavaScript code that calls code within an applet that has permission to run outside the security sandbox is treated as mixed code, which could cause additional warnings to be shown to the user. See Invoking Applet Methods From JavaScript Code for information.

The Java Rich Internet Applications Development and Deployment Guide, including the Deployment ebook (both MOBI and EPUB formats), contains the following changes:

  • The Security Level setting in the Java Control Panel can be used to automatically block some types of RIAs. The default setting of High permits all but local applets to run on a secure JRE. If the user is running an insecure JRE, only RIAs that are signed with a certificate issued by a recognized certificate authority are allowed to run. See Security for information.

  • Screen shots and other information about the Java Control Panel have been updated. See Java Control Panel for information.

The Java Remote Method Invocation (RMI) Guide contains information on the java.rmi.server.useCodebaseOnly property, which is now set to true by default. See RMI Enhancements for information.

Deploying JavaFX Applications contains changes related to the policy of signing applications and working with applications that are restricted to the security sandbox or have extended permissions.


JDK 8 Updates


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


Thursday Dec 13, 2012

JavaFX 2.2.4 Documentation

JavaFX 2.2.4 and JDK 7u10 were released on Tuesday. In addition to the release documentation, the following new information is provided:

  • A new document, Using the Image Ops API, describes how to read and write raw pixel data to and from JavaFX images.
  • The Handling JavaFX Events document has been updated with more information on touch events. The Working with Touch Events chapter and Touch Events sample provide information about handling individual touch points to provide sophisticated responses to touch actions.
  • The Implementing Best Practices document has been updated to include information about running tasks on background threads.
  • The Troubleshooting section of Deploying JavaFX Applications now includes a section about disabling the automatic proxy configuration in your application code.

Other documents were updated to reflect minor bug fixes.

You can download JavaFX 2.2.4 from OTN. For all tutorials and API documentation, see

Tuesday Oct 16, 2012

JavaFX 2.2.3 Documentation

JavaFX Documentation

JavaFX 2.2.3 and JDK 7u9 were released today. In addition to the release documentation, the following new information is provided:

  • Learn about some of the "behind the scenes" work for an application, such as threads, events, and binding with the new learning trail on the landing page.
  • Learn how to use cell editors with the List View component. The new example in the UI Controls tutorial shows how to build a list of names by selecting them from a combo box.

Other documents were updated to reflect minor bug fixes.

You can download JavaFX 2.2.3 from OTN. For all tutorials and API documentation, see

Other News:

JavaFX Scene Builder 1.1 Developer Preview was released during the week of JavaOne and is available from OTN. This version contains support for the Linux and Mac OS X 10.8 platforms, and a preview of the new CSS Analyzer feature. See the release notes for more information.

Friday Aug 24, 2012

Take a snapshot with JavaFX!

JavaFX 2.2 has a "snapshot" feature that enables you to take a picture of any node or scene. Take a look at the API Documentation and you will find new snapshot methods in the javafx.scene.Scene class.

The most basic version has the following signature:

public WritableImage snapshot(WritableImage image)

The WritableImage class (also introduced in JavaFX 2.2) lives in the javafx.scene.image package, and represents a custom graphical image that is constructed from pixels supplied by the application.

In fact, there are 5 new classes in javafx.scene.image:

  • PixelFormat: Defines the layout of data for a pixel of a given format.
  • WritablePixelFormat: Represents a pixel format that can store full colors and so can be used as a destination format to write pixel data from an arbitrary image.
  • PixelReader: Defines methods for retrieving the pixel data from an Image or other surface containing pixels.
  • PixelWriter: Defines methods for writing the pixel data of a WritableImage or other surface containing writable pixels.
  • WritableImage: Represents a custom graphical image that is constructed from pixels supplied by the application, and possibly from PixelReader objects from any number of sources, including images read from a file or URL.

The API documentation contains lots of information, so go investigate and have fun with these useful new classes!

-- Scott Hommel

Tuesday Aug 14, 2012

JavaFX 2.2 Documentation

JavaFX Documentation

The JavaFX documentation has been updated. A new learning trail is available on the landing page to help you manage the look and feel of your JavaFX application. Besides this addition, you can find the following changes:

  • Deploying JavaFX Applications has been heavily revised to incorporate several new deployment features in JDK 7u6/JavaFX 2.2. See What's New for more information.
  • Hybrid applications that use both SWT and JavaFX libraries can benefit from the improved packaging support available in JDK 7u6. For information about how to package SWT-JavaFX applications, see JavaFX Interoperability with SWT.
  • Handling JavaFX Events has been updated with information on touch and gesture events. The Working with Events from Touch-Enabled Devices chapter and sample provide information on handling events from touch-enabled devices.
  • The Deployment chapter in Getting Started with JavaFX introduces self-contained applications, which are explained in more detail in the Deployment Guide.
  • Two chapters were added to Using JavaFX UI Controls to introduce the Color Picker and Pagination controls. The Color Picker chapter, provides the design overview of the control, and explains how to use it in JavaFX applications. The Pagination chapter teaches how to add a pagination control to your application, manage its page items, and style the elements of the control with CSS styles.
  • Mastering FXML has been updated to include the following chapters:
  • JavaFX for Swing Developers has been updated to include the following chapter:
    • Implementing a Swing Application in JavaFX - a tutorial that shows how to implement a typical Swing application in JavaFXand provides the comparison of some standard implementation patterns in Swing and JavaFX
  • Study Working with Canvas to learn about a new custom image that you can freely draw on. To use it, you simply obtain its GraphicsContext and invoke its methods to render the shapes. You can even use this component to define a simple layer system.
  • Implementing JavaFX Best Practices points out some best coding practices as found in the Henley Sales application. The concepts translate to JavaFX programming in general, so users should keep these suggestions in mind when developing their own applications.
  • Study the modified version of Adding HTML Content to learn how to manage web history in your JavaFX applications.

Our special announcements:

  • JavaFX Scene Builder 1.0 is officially released! The Scene Builder documentation is available at Find out more information about Scene Builder in the Overview document.
  • Starting the 2.2 release of JavaFX, the API documentation is not bundled together with the JavaFX SDK. You can download it from the Documentation section of the Oracle Technology Network.

You can download JavaFX 2.2 from OTN. For all tutorials and API documentation, see

Tuesday Jun 19, 2012

JavaFX 2.1.1 Documentation

JavaFX 2.1.1 released on June 12, and few documents were updated on the website.

Besides a new set of release documentation, the Concurrency in JavaFX article was updated with a discussion of how to cancel a task, with a code sample to illustrate that. A new section describes the WorkerStateEvent class and how to use the convenience methods such as cancelled, failed, running, scheduled, and succeeded, which are invoked when the Worker implementation state changes.

Other documents were updated to reflect minor bug fixes, many of them contributed by JavaFX readers using the feedback alias in the sidebar of all of our documentation. Yes, we do respond and pay attention to what you say and at least try to point you in the right direction if we can't solve a problem you're having with a tutorial. We appreciate your feedback!


Blog about Java technology documentation and news about Java releases.


« July 2016