package examples; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.text.Text; import javafx.scene.text.Font; /** * Just a helloworld example. * * @author Anthony Goubard */ Stage { title: "Helloworld" width: 250 height: 80 scene: Scene { content: Text { font : Font { size : 16 } x: 10, y: 30 content: "Helloworld" } } } class MyClass { var myValue: String; public function print() { println("The value is {myValue}"); } public function addText(text:String):String { myValue = "{myValue}{text}"; return myValue } }