Some Perspective in JavaFX

DZone 's Guide to

Some Perspective in JavaFX

· Java Zone ·
Free Resource

I've been asked to post the slides for the JavaFX presentation that I delivered at JavaZone 2008.  Because the presentation itself was written in JavaFX, I've bundled it up so that you can run it from a Java Web Start link.  First, however, I'd like to show you some screenshots and provide an explanation of what you'll be looking at:


As shown above, the presentation (entitled Vikings and Wizards in JavaFX) is shown on the faces of a rotating cube.  The Norwegian Java Users Group, named javaBin, does a great job in organizing the JavaZone conference, which also explains the graphics on the first "slide".

To view the next or previous slide, you can click the image buttons that have a right or left pointing triangle, respectively.  This will rotate the cube, which is accomplished using the PerspectiveTransform effect, located in the javafx.scene.effect package.


Some of the slides are "live" (running JavaFX functionality within them).  For example, you can interact with the TetrixJFX game, the "Are You A Viking" wizard, the custom node examples (MenuNode and DeckNode), and the morphing example.  For the latter, just click on the yellow circle and watch the morphing begin!  To see more information about these applications, visit the blog posts for TetrisJFX, Vikings and Wizards, Rolling Your Own Custom Nodes, and Getting Decked


By the way, the presentation runs in an undecorated Frame, which means that there is no border, Close box, etc.  I make my desktop background black and minimize any open windows before presenting so that the cube appears to be rotating in a big dark space.  As soon as the graphics designer (Mark Dingman of Malden Labs) gets a chance to create a cool looking graphical Close box, I'll put it in the application.  For now, however, you'll have to end the application manually.  You'll need JRE 6 to run this, and Java SE 6 update 10 will give you a faster deployment experience.  Go ahead and give it a whirl by clicking the Java Web Start button below!

Note: Please keep in mind that this is running with the JavaFX Preview SDK which has not been optimized for performance.  Behavior and performance of the PerspectiveTransform on Vista, for example, are definitely sub-optimal at the moment.  These are known issues that the JavaFX GUI team is confident have already been corrected in the upcoming JavaFX SDK 1.0 release.



Jim Weaver


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}