/* * Simple CSS Style Demo * * (c) Mikhail Gorshenev */ package cssdemo; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.shape.SVGPath; import javafx.scene.paint.*; import javafx.scene.control.*; Stage { scene: Scene { stylesheets: "{__DIR__}demo.css" fill: Color.rgb(90, 90, 90) width: 720 height: 480 content: [ SVGPath{content:"M150,100L200,180H100Z" fill:null stroke: Color.WHITE}, SVGPath{content:"M150,170V167M150,155V120Z" fill:null stroke: Color.WHITE}, Label {text: "You've got mail!" translateX: 300 translateY: 130}, Button {text: "Read" translateX: 200 translateY: 300}, Button {text: "Cancel" translateX: 400 translateY: 300} ] } }