Preface
On May 26, 2011, Oracle released the beta SDK for JavaFX 2.0. The major difference between previous versions is that it provides Java APIs, allowing us to use JavaFX from normal Java applications. Ok, using JavaFX from Java is good, but what about Scala? Scala programs run on the same JVM as Java, so there should be no problems to use JavaFX from.
To prove that it is possible to use JavaFX from Scala, we will try to clone Oracle’s Getting Started with Java FX application. I think you already have Scala IDE or Scala Plugin for your favorite IDE? For this experiment I will use Eclipse Indigo + Scala IDE for Eclipse + Maven Integration (available in Eclipse Marketplace).