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.scene.text.*; | |
class HelloWorldNode extends CustomNode { | |
public var str:String; | |
override function create():Node { | |
Text { | |
content: bind str |
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.scene.text.*; | |
import javafx.ext.swing.*; | |
var stage = Stage { | |
title: "Swing" | |
width: 170 | |
height: 50 | |
scene: Scene { | |
content: { |
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.* | |
def stage = new Stage(true) | |
stage.addTriggers$() | |
stage.set$title("Fx") | |
stage.set$width(100) | |
stage.set$height(50) | |
stage.set$visible(true) | |
stage.complete$() |
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.*; | |
Stage { | |
title: "FX" | |
width: 100 | |
height: 50 | |
visible: true | |
} |
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
public class Swing extends FXBase implements FXObject { | |
public static Object javafx$run$(final Sequence<? extends String> _$UNUSED$_$ARGS$_) { | |
return { | |
final javafx.stage.Stage jfx$0objlit = new javafx.stage.Stage(true); | |
jfx$0objlit.addTriggers$(); | |
final int jfx$2count = jfx$0objlit.count$(); | |
final short[] jfx$3map = GETMAP$javafx$stage$Stage(); |
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$() |
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
def fx = new FxBuilder() | |
fx.stage(title: "Fx", width: 100, height: 50) { | |
scene { | |
swingButton(text: "Swing!") | |
} | |
} |
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 griffon.builder.fx.FxBuilder | |
def fx = new FxBuilder() | |
fx.stage(title: "Embedded Player", width: 200, height: 100) { | |
scene { | |
mediaView(fitWidth: 200, fitHeight: 100) { | |
mediaPlayer(autoPlay: true) { | |
media(source: "http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2956241001_big-buck-bunny-640x360.flv") | |
} | |
} |
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 java.awt.Color | |
import groovy.swing.SwingBuilder | |
import griffon.builder.gfx.GfxBuilder | |
import griffon.builder.gfx.swing.GfxPanel | |
def gfx = new GfxBuilder() | |
def node = gfx.group { | |
antialias true | |
ellipse(cx: 150, cy: 150, rx: 100, ry: 50, f: Color.WHITE) | |
ellipse(cx: 150, cy: 150, rx: 100, ry: 50, o: 0.5f) { |
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 groovy.swing.SwingBuilder | |
import griffon.builder.gfx.* | |
import griffon.builder.gfx.swing.GfxPanel | |
import java.awt.Color | |
def gfx = new GfxBuilder() | |
def node = gfx.group() { | |
antialias true | |
background(color('black')) | |
(0..41).each{ i -> |