Mixing Java and JavaFx Giampaolo Melis JUG Genova
Goal An MVC where Java is the controller and JavaFx the view.
Agenda JSR 223 Scripting for the Java Platform
The JavaFx Script language
Design and Programming Tools
Using Fx in a Java Application
Makeover of JhaarSearch Application
Resources
Q&A
JSR 223 Scripting for the Java Platform Framework for embedding scripts into Java source code. ClassLoader loader = Thread.currentThread().getContextClassLoader(); ScriptEngineManager manager = new ScriptEngineManager(loader); ScriptEngine engine = manager.getEngineByExtension( "fx" ); String script = "println(\"Hello World!\");"; engine.eval(script);
The JavaFx Script language Primary component of the JavaFx platform for creating RIA. Statically typed declarative scripting language, based on Java syntax. Started as F3, has  been changed from interpreted to compiled (fx compiler) version.

JavaFX Mix

  • 1.
    Mixing Java andJavaFx Giampaolo Melis JUG Genova
  • 2.
    Goal An MVCwhere Java is the controller and JavaFx the view.
  • 3.
    Agenda JSR 223Scripting for the Java Platform
  • 4.
  • 5.
  • 6.
    Using Fx ina Java Application
  • 7.
  • 8.
  • 9.
  • 10.
    JSR 223 Scriptingfor the Java Platform Framework for embedding scripts into Java source code. ClassLoader loader = Thread.currentThread().getContextClassLoader(); ScriptEngineManager manager = new ScriptEngineManager(loader); ScriptEngine engine = manager.getEngineByExtension( "fx" ); String script = "println(\"Hello World!\");"; engine.eval(script);
  • 11.
    The JavaFx Scriptlanguage Primary component of the JavaFx platform for creating RIA. Statically typed declarative scripting language, based on Java syntax. Started as F3, has been changed from interpreted to compiled (fx compiler) version.