I love it when Sun employees like Richard Bair and Jasper Potts demonstrate features, and show code samples (in wet concrete of course), for upcoming JavaFX releases. In this post I'd like to bring some of these Sun-leaked features and code samples to light. Please note that this talk was a preview, and things will of course change before the final JavaFX 1.3 release.
From Enterprising JavaFX by Richard and Jasper at Devoxx (and the 1960-70s judging from the Devoxx theme-art this year)
After delivering a brilliant explanation of how to use the JavaFX Task API (introduced in JavaFX 1.2), Richard went on to expose some of the planned JavaFX 1.3 controls. Here's a shot of the slide that denotes some of the UI controls in 1.3 with asterisks:
The ListView, TreeView and TableView controls will allow you to customize their contents with the use of the Cell class shown in the shot below:
To create a custom cell, use the cellFactory function reference of the ListView, TreeView or TableView classes, and supply background, node, and/or foreground values. This approach allows the runtime to memory manage cell instances:
Please note that ListView was introduced in 1.2, but will be greatly improved in 1.3. TreeView will be introduced in a basic form in 1.3, and TableView will be released post-1.3.
Here's a busy shot of a UI controls demo from Richard, for which Jasper later apologized because the demo isn't skinned to Jasper's liking:
Later, Jasper discussed the strategies for styling JavaFX components moving forward as shown in the shot below, and then focused on CSS for styling components on desktop, mobile and TV:
Here's an example of using CSS to style the scene, which cascades to controls contained by the scene:
Jasper then discussed the regions construct that will be included as an internal API in 1.3, and possibly exposed to developers in future releases:
Regions can be used, for example, to help create custom component such as the ScrollBar shown below:
Another upcoming item of interest from this presentation is that the underlying graphical toolkits will be replaced (post-JavaFX 1.3) with Prism, which will provide a much faster UI and a common toolkit across devices on which JavaFX is deployed.
This post has only scratched the surface of what was presented in the hour-long Enterprising JavaFX session at Devoxx, but hopefully it gave you a taste of some the many features coming in JavaFX 1.3. Thanks to Jasper and Rich for sharing!
Regards,
Jim Weaver
I am very excited that attention is returning to Enterprise staples such as the TreeView and TableView. This is very necessary for utility applications and JavaFX can be a great environment for developing such user interfaces. I anxiously await news of when 1.3 will be released.
Posted by: R Casey | December 11, 2009 at 11:45 AM
ok. its all coming... but why is there no serious information from sun. at least a timetable. whats their problem to give the people information about future plans. of course!! 1.3 is coming. but when? yeah... the stuff with asterisk will come... but when comes 1.3 again? all this things should already be available. no table control? hm... juhuu! what are they doing all the time? it s good work made from the guys from the jfxtras-project and peter pilgrim but that should be the part of sun! promises promises like "authoring tool comes till the end of the year"? no information about that too yet. no information no information no information... o and the this new gui tool as well within netbeans 6.8. come on - rc 2 is there. ups, did they forget it too. we are so stupid. good strategy sun!
Posted by: tpepitas | December 09, 2009 at 04:45 PM
JavaFX is so dead.
Posted by: RIA Lover | December 08, 2009 at 07:17 PM
I don't understand why Sun doesn't make this revelations to the general public and chooses a private conference that only a small percentage of people can attend.
Does any one know a way to view the video online for free?
Posted by: Pedro Duque Vieira | December 05, 2009 at 08:41 AM