/* * Main.fx * * Created on Feb 8, 2008, 9:55:13 PM */ package themes; import java.lang.Object; import javafx.scene.paint.Color; import javafx.scene.Scene; import javafx.scene.text.Font; import javafx.scene.text.Text; import javafx.stage.Stage; import javafx.stage.StageStyle; import themes.BlueTheme; import themes.GreenTheme; /** * @author Vaibhav Choudhary */ var bt: BlueTheme = BlueTheme{}; public var s = Scene { height: 200 width: 200 fill: Color.GRAY content: [ Text { font: Font { size: 20 } x: 10, y: 100 content: "Application content" }, bt ] }; public var width = bind s.width; public var height = bind s.height; function run() { var s1 = Stage { title: "Flexible Themes" style: StageStyle.TRANSPARENT width: 240 height: 320 scene: s } }