Griffon
  • Have an account? Sign in


    • Forgot password?
    • Forgot username?
    • Sign up for an account!

javafx

Griffon JavaFX Plugin
Toolkits Swing JavaFX
Platforms
  • spacer
  • spacer
  • spacer
  • spacer
License Apache Software License 2.0
Source https://github.com/deanriverson/griffon-javafx-plugin
Documentation No documentation link provided
spacer  Tags
toolkit, javafx
Downloads 8
Rating
(0)

Authored by:

  • spacer
Dean Iverson
deanriverson@gmail.com
  • spacer
Andres Almiray
aalmiray@yahoo.com
  • Installation
  • Description
  • Releases
  • Comments

Allows writing Griffon JavaFX applications using GroovyFX for the views.

This plugin assumes the existence of JavaFX on the developer's computer. The environment variable JAVAFX_HOME should point to the root directory of the JavaFX SDK installation.

Usage

Once installed, you can use any of the nodes provided by GroovyFX in your views. GroovyFX documentation can be found here and JavaFX documentation can be found here. In addition, you will be able to use the @FXBindable annotation on your models.

Example

Your main application's view might look like this (in fact it will look exactly like this if you create your application with the JavaFX archetype):

stage(title: '@griffon.app.class.name@', visible: true, centerOnScreen: true) {
    scene(fill: black, , ) {
        hbox(padding: 80) {
            text(text: "Java", font: "80pt sanserif") {
                fill linearGradient(endX: 0, stops: [[0, orange], [1, chocolate]])
            }
            text(text: "FX", font: "80pt sanserif") {
                fill linearGradient(endX: 0, stops: [[0, cyan], [1, dodgerblue]])
                effect dropShadow(color: dodgerblue, radius: 25, spread: 0.25)
            }
        }
    }
}

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.