01.import groovyx.javafx.GroovyFX
02.import groovyx.javafx.SceneGraphBuilder
03.import javafx.stage.StageStyle
04.import javafx.stage.Stage
05.
06.GroovyFX.start
07.{
08.stage(title: 'RMOUG Training Days 2013',
09.width: 300, height: 100,
10.show: true)
11.{
12.scene
13.{
14.stackPane
15.{
16.text('Hello GroovyFX!', x: 50, y: 40)
17.}
18.}
19.}
20.}
复制代码Running the above script leads to the following output:
rmougTd2013HelloWorldJavaFX.png (8.45 KB, 下载次数: 6)
下载附件
2013-2-21 09:16 上传
|