Kannan's Weblog
JavaFX animation (continued)
Another typical bouncing ball kind of application that I have come up with. Nothing fancy about this application. I have written the application in both JavaFX and Java just to see as to what it takes to come up an application with the same output on both these languages.
Similar
to my earlier sample on Solar System simulation, there are a few
attributes made configurable with some keypresses. You will find
instructions on those at the top left of the application
In order to compare the output, run both the apps from two different terminals. JavaFX script occupies the first half of the screen and the java app occupies the other half. Running both of them simultaneously would occupy the fullscreen.
Attaching screenshot of the combined application:
StarField.fx and StarField.java
Thanks,
Kannan
Posted at 11:58PM Dec 21, 2007 by Kannan Balasubramanian in Sun | Comments[0]