Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Update: The GroovyFX Project has moved!

Please join us at our new site.  This page will be taken down once all information has been migrated.

Module Overview

GroovyFX provides a Groovy binding for JavaFX 2.0.

GroovyFX is an API that makes working with JavaFX in Groovy much simpler and more natural to those well-versed in Groovy. GroovyFX is focused on leveraging the Builder pattern for JavaFX applications, but more than that, it leverages some of the DSL capabilities that Groovy provides and makes the Groovy based JavaFX code easier to write and, just as important, easier to read. For example, JavaFX colors can be set using pseudo variables, like red or blue.

The primary goal of GroovyFX is to make JavaFX development simpler and more concise than what it takes in Java. This is done via numerous built-in features that Groovy provides, including the Tree Structured Language supported through Groovy’s Builder framework that makes declaring a JavaFX SceneGraph more closely resemble the actual SceneGraph itself. This is done through GroovyFX’s SceneGraphBuilder object, that supports all the Controls, Shapes, Effects, and other JavaFX objects, as well as support for using Groovy closures for event handling.

Features include a SceneGraphBuilder, a TimelineBuilder and Groovy DSL features to handle JavaFX objects, enumerations, binding, and paints/colors.

The following screenshots show two GroovyFX applications, one demonstrating the visual effect features available with JavaFX and the other demonstrating the JavaFX Charts. The ChartDemo.groovy source is listed below the screen snapshots.


The project is currently in Alpha 1.0 state.


Project source can be downloaded from the GroovyFX Repository. The repository contains a Netbeans project and the Jar file can be created using Netbeans. Eventually, we plan on making snapshot and release jar files available.


Coming soon.


  1. Download the JavaFX SDK 2.0 zip file from
  2. Extract the SDK files from the zip file to a directory on your local file system.
  3. Download Groovy 1.8.+ from
  4. Install Groovy onto you system following the instructions provided at the Download site above.
  5. Download the GroovyFX jar file (For now you need to build it from the source repository, a binary distribution will be available soon).
  6. Create a groovy project in your favorite IDE (Netbeans use the JavaFX version).
  7. If your IDE does not already include JavaFX support, link the JavaFX runtime jar to your project (<JAVAFX_SDK_DIRECTORY>/rt/lib/jfxrt.jar).
  8. If your IDE does not already include Groovy support, link the Groovy jar file to your project (<GROOVY_HOME>/embeddable/groovy-all-1.8.+.jar)
  9. Link the GroovyFX jar file to your project.


Groovy 1.8.+

You will need to install the JavaFX 2.0 Beta from (JavaFX 2.0 build 38).

Team Members

  • Jim Clarke 
  • Dean Iverson



Source Control

Project source can be downloaded from the GroovyFX Repository.


As the source is in a Netbeans project, you can build using Netbeans or using ant from the Netbeans installation.


Please contact the team members by e-mail or send a message to the Groovy mailing lists.


Mailing List(s)

Issue tracker

  • No labels