Wednesday, November 18, 2009

My JavaFX Experiment

I've attended a talk about JavaFX and decided to try it out. My experiment is a simple Karaoke Player for .KAR files. To try it out, click on the link below. A JNLP file is playable by JAVA. Make sure you have the latest JAVA plugin installed.

http://markbucayan.appspot.com/karaoke/VideoScene.jnlp

This application runs in a full window. To exit, simply Escape and click on the close button. I turned off video playing for now.

I'll post the code if anyone's interested at all. This application also demonstrates JavaFX talking to JAVA. The Karaoke Player is implemented in JAVA as MIDI Events is supported by JAVA. The GUI is in JavaFX.

Indeed, its a lot easier to prepare the GUI than plain old AWT. I implemented this same application a long time ago and used JAVA's drawing capabilities and I can conclude that JavaFX is a lot easier way to do the graphics. Most of all, binding variables is very powerful!

I will try to revisit this project when I have more time in the future. For now, I apologize that it plays only one particular Karaoke file. Try it out!

No comments: