Skip to content

Instantly share code, notes, and snippets.

@HanSolo
Created July 25, 2013 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HanSolo/6078919 to your computer and use it in GitHub Desktop.
Save HanSolo/6078919 to your computer and use it in GitHub Desktop.
A JavaScript file that will be used to configure a JavaFX8 application at runtime by using the Nashorn scripting engine
var Lcd = Packages.eu.hansolo.enzo.lcd.Lcd;
var obj = new Object();
obj.configLcd = function(lcd) {
lcd.value = 0;
lcd.lowerRightText = 'config';
lcd.styleClass.setAll("lcd", "lcd-blue");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment