A very quiet week this week in terms of link quantity, but with new JavaFX and NetBeans releases it is made up for with some very important links to take note of this week. As always thanks to the people who take the time to email me their links.
- JavaFX 1.3.1 was released this week. It contains a lot of improvements and bug fixes, and is accompanied by an updated NetBeans release. The main feature of JavaFX 1.3.1 is an improved (and more configurable) startup experience.
- Danny Coward presented at Jazoon in June with an interesting talk titled ‘Java SE and JavaFX: The Road Ahead‘. It’s a good and informative talk, so if you’ve got an hour to spare the video is well worth watching.
- David Kaspar has written an article over at the NetBeans knowledge base about using NetBeans JavaFX Composer fragments to make building user interfaces easier (by spanning them over multiple files).
- I posted two screencasts for two controls I built in my spare time: TitledPane and Accordion.
That’s that for another week. Catch you all in a weeks time, and keep up the hard work folks 🙂
first of all, thanks for the info you’re sharing – it’s very useful
The Accordion component seems great – can you share the source code for it?
I would also love to see the source code for the TitledPane and the Accordion. This site has become my go-to site for JavaFX, keep up the good work!
I’m trying to work out how to release these controls as soon as possible, but I’m not sure when that’ll be. At present I’ve got TabView, SplitView, TitledPane, Accordion and Spinner controls in various stages of completeness.
My inclination is to do a jar-only release containing just the compiled code and the API documentation for now, and to try to get people using them, offering feedback and requesting improvements. Unfortunately, because I use undocumented (and unsupported) API, I’m less inclined to do a source code release right now.
I’m really curious as to how you achieved that grow effect in the TitledPane because I was looking to have a similar effect in my app. I know that simply making the width grow doesn’t work since the nodes seem to grow from their center point. And it doesn’t look like a simple translate. Could you share how you achieved that effect?
Sure – I’ll try to write a post about it as soon as possible, but basically you just need to write a custom doLayout function, and ensure that the content is always positioned at (0,0), rather than sitting in the center. You can do this most easily be creating a Container (or subclass), setting the content sequence, and then overriding doLayout.
To do the actual animated resizing, you simply create a timeline that runs between 0 and 1 (or vice versa), and use that value to multiply against the preferred height of the container. The end result is that each time the timeline value changes, the height will change, and either go down to 0, or up to the preferred height of the container. You then just need to hook up the timeline to play at appropriate times.
Good luck! 🙂