The JavaFX 2.0.2 release is now available for download. Along with a heap of bug fixes, notable improvements include:
- Interoperability with the Standard Widget Toolkit (SWT).
- New scroll event that handles scrolling on two axes and replaces the
MouseEvent.MOUSE_WHEEL_ROTATED
event. - Change of license, which enables third party developers to redistribute the JavaFX Runtime with their applications in accordance with the Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX.
- Updated doclet for the Javadoc tool that is used to generate JavaFX API documentation in HTML format.
- Updated NetBeans projects for the JavaFX samples for use with the NetBeans 7.1 release.
The JavaFX documentation team has also put out more documentation to explain a number of areas, including:
- Styling Charts with CSS describes how to alter the visual appearance of charts in your application. Using the various CSS classes and properties you can set an alternative color scheme, add images and graphical effects, modify the chart legend and plot, and even invent new chart symbols.
- The Menu chapter of the JavaFX UI Controls tutorial describes how to build a menu bar in your application, add menu items, assign specific actions to each item, and set a context menu for a node.
- Handling JavaFX Events describes how to create and use event handlers and event filters to process user interactions with your application.
- Using a Doclet with JavaFX describes how to use the Javadoc doclet that was created for use with JavaFX source code. Using the doclet with the Javadoc tool produces customized HTML documentation.
- Deploying JavaFX Applications describes a new JavaFX Ant helper parameter, <fx:argument>. Also new is a mechanism for passing images to the <fx:deploy> task. Use <fx:icon> to pass icons for various purposes or <fx:splash> to pass a splash screen image for Web Start applications.
Relevant links:
Ha, the interoperability with the SWT is in IMHO great news !
However, a quick perusal of the 2.0.2 SDK JavaDoc was inconclusive in my search for code examples.
Are any code examples for SWT interoperability available somewhere ?
Thanks.
Quick blog on the way!
How exactly does the SWT interoperability work? I can’t seem to find any docs detailing it. Thanks
I’ll write a quick blog on SWT interop.
According to the release notes:
“Note that starting with Java SE 7 update 2, the JDK includes the JavaFX SDK and the JavaFX Runtime is installed along with the JRE.”
I’ve installed the JRE 7u2, but I don’t get the JavaFX runtime installed along…am I missing something?
Hi guys,
Nice site! Is there an email address I can contact you in private?
Hi,
I was very excited to hear that Java FX would have Interoperability with Swing/SWT, but untill now I have only seen blogs/codes adding Java Fx to Swing/SWT applications. I was wondering if the other way was possible? Adding existing swing code into Java FX application inorder to deploy on the web!
Hi Sankalp, for now you can only embed FX into Swing or SWT. There is a project already out there for embedding Swing into JavaFX, but it isn’t part of the core platform yet.
Does Java FX is replacement of Swing ?