With the end of 2011 nearing, I thought it would be a good time look back on what has happened in the world of JavaFX this year…
Sorry for the delay in this post – with Christmas I managed to relatively disconnect from the web for a few days. Now that things are getting back to normal, I have a heap of links to share. Enjoy! 🙂
- The big JavaFX news this week was the release of early access builds of JavaFX 2.1 for Windows and Mac OS.
- Here at the FX Experience blog, Jasper Potts blogged about styling JavaFX Buttons with CSS, where he demonstrated the power of CSS in JavaFX.
- In a separate post, Jasper posted a tool he developed prior to JavaOne 2011 that converts FXG into FXML.
- As mentioned a few weeks ago, one of the new features in JavaFX 2.0.2 is support for SWT interoperability. Richard Bair put up a sample application that integrates JavaFX Charts into an SWT application.
- The OpenJFX website was updated this week to include a ‘Getting Started‘ document, as well as the first two user experience specifications for Spinner and ‘DatePicker’. These two were posted first as they are being discussed in the openjfx-dev mailing list.
- Jim Weaver was interviewed in episode 61 of the Java Spotlight Podcast.
- Toni Epple has blogged about creating a custom DateChooser control. There is a bit of broken generic code at the top of the top of the DateChooserSkin class, but other than that it is a complete example. This is a control that is planned for a future release of JavaFX, but until then there exists both this DateChooser, and the one shipped as part of JFXtras. Hopefully one of these implementations may even be incubated and adopted into a future JavaFX release, now that JavaFX UI Controls are open source.
- Adam Bien has blogged about how to compile JavaFX 2.0 applications using Maven 3.
- In a separate post, Adam gave a very simple example of how binding works in JavaFX (in the form of a unit test).
- Dustin Marx has four JavaFX-related blog posts up this week: “Simple JavaFX 2.0 Text Example“, “(Pure Java) JavaFX 2.0 Menus“, “JavaFX 2.0 Christmas Tree (JavaFX 2.0 Shapes)“, and “JavaFX 2.0 Path Alternatives“.
- Carl Dea, who recently published the ‘JavaFX 2.0 Introduction by Example‘ book, has published a sample on his blog.
- For those attending JFokus, you may be interested in the ConferenceBrowserFX application Jim Weaver has created.
- For those in the St. Louis area, Weiqi Gao is presenting at the St. Louis Java User Group on the topic of JavaFX on January 12th.
- I try to not post videos as links, but every now and then break the rules. This week I have two interesting videos to share. Firstly, Gerrit Grunwald has put up a comparison video of his SteelSeries gauges, that demonstrates the difference (or similarity) between the Swing/Java2D and JavaFX versions. The second video is from Bertrand Goetzmann, where he shows off the latest features in Grezi.
I hope you found something useful 🙂 Catch you in a weeks time!
It has been a hectic few months for JavaFX releases recently (and before that it was a hectic year of development building up to JavaFX 2.0!). Today we have another announcement, but first, a quick timeline:
- JavaFX 2.0 for Windows, and JavaFX 2.0 developer preview for Mac OS shipped at JavaOne in early October.
- In mid-October we shipped JavaFX 2.0.1 for Windows. This was a security-only release.
- Earlier this month JavaFX 2.0.2 was released, which included a huge number of bug fixes, optimisations, some new API, and an improved redistribution license.
Today we are proud to announce that JavaFX 2.1 early access is available for Windows. It has been available for Mac OS for quite some time from the same page…
The reason why I say we’re proud: we’re hitting all the targets we’re talking about, and the releases just keep getting better and more featured. JavaFX 2.1 is going to be a more substantial release, and I’m so pleased we can get you early versions of it so soon.
Now, a word of warning: don’t use the early access releases in production – it is pre-beta code and will be more buggy than 2.0.2. We’re putting this out for public use so people may test the new features and provide feedback.
As with all other releases I’ve announced:
- Go to the forums to discuss JavaFX questions you have,
- Sign up to the openjfx-dev mailing list if you’re interested in our open source developments,
- File bug reports over at our Jira issue tracker.
With JavaFX 2.0.2, we’ve included support for interop with SWT in the same way that we support interop with Swing. That is, you can embed JavaFX within your SWT applications! Although e(fx)clipse has been doing this for a little while by embedding FX -> Swing -> SWT, you can now skip the intermediate embedding into Swing and just go straight to SWT. Because FX and SWT share the same basic threading model, this is really easy to do.
When Eileen and I were working on our session for JavaOne on Designer-Developer workflow we needed a way of converting some vector graphics from Adobe Illustrator into JavaFX. So I tried the FXG to JavaFX converter I found on the web and did not have much luck as what Eileen and draw was pretty advanced. So I thought well FXG is a XML file and FXML is a XML file and as I used to do XML->XML conversion all the time for a previous job using XSLT. I thought how hard can be be to write a converter, well about 4 hours later and some dusting off of The XSLT book here is what I came up with: