Created
June 19, 2009 02:05
-
-
Save aalmiray/132357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.stage.* | |
import javafx.scene.* | |
import javafx.ext.swing.* | |
import com.sun.javafx.runtime.* | |
import com.sun.javafx.runtime.sequence.* | |
def content = [] | |
def button = new SwingButton(true) | |
button.addTriggers$() | |
button.applyDefaults$() | |
button.set$text("Swing!") | |
button.complete$() | |
content << button | |
def scene = new Scene(true) | |
scene.addTriggers$() | |
scene.applyDefaults$() | |
scene.loc$content().setAsSequence(Sequences.fromCollection(TypeInfo.Object,content)) | |
scene.complete$() | |
def stage = new Stage(true) | |
stage.addTriggers$() | |
stage.applyDefaults$() | |
stage.set$scene(scene) | |
stage.set$title("Fx") | |
stage.set$width(100) | |
stage.set$height(50) | |
stage.set$visible(true) | |
stage.complete$() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment