Vaibhav's Blog Space

  • Java
    January 7, 2009

Pendulum Motion with controller in JavaFX

Guest Author

So, here goes one more Motion sample in JavaFX :). I have added Slider to control the value of "g" in Pendulum motion(just a thought, anything can be controlled like mass, length of pendulum). Pendulum do a complex calculation(Square root, Cosine, Sine) and I guess render is great in FX. Sorry again, as I am not able to post the applet. 

But here how it looks : 

The progress bar has been stolen from Chris Blog.

Here is the source code :

Main file, Pendulum.fx, Slider.fx.

Have a look and feel free to share your views.

Join the discussion

Comments ( 4 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.