This is a demo that I ported from www.shinedraw.com as an exercise to learn a bit more about JavaFX. Basically the line should follow and dance around the mouse pointer.

Note: I did have this embedded in the page as an applet but it appears to crash FireFox on Linux (not good) so for now I have changed it to a web start application: Run demo with Java webstart.

I learned quite a lot about JavaFX in the process of porting this little example, and I will publish the source and dissect it in an upcoming post. For now, I’ll just say that there is a lot that I like about JavaFX script, but the platform feels quite incomplete for a 1.0 release. Even for this relatively simple example I had to lean on Java on more than one occasion. Fortunately, calling on it’s big brother for help is pretty seamless, so I don’t think it will hold it back.