About: Fullscreen window example   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

This is a simple example showing "Hello World" centered on a fullscreen frame Preview SDK version package javafxapplication1; import javafx.ui.*; import javafx.ui.canvas.*; import javafx.ui.filter.*; import java.awt.Toolkit; Frame { var s = Toolkit.getDefaultToolkit().getScreenSize() title: "Hello" undecorated: true background: Color.WHITE width: s.width height: s.height content: Canvas { var text:Text content: text = Text { x: (s.width / 2) - (text.currentWidth / 2) y: (s.height / 2) - (text.currentHeight / 2) content: "Hello World! {s.width} x {s.height}" font: Font { face: FontFace.VERDANA, style: [ FontStyle.ITALIC, FontStyle.BOLD], size: 60 } } } visible: true }

AttributesValues
rdfs:label
  • Fullscreen window example
rdfs:comment
  • This is a simple example showing "Hello World" centered on a fullscreen frame Preview SDK version package javafxapplication1; import javafx.ui.*; import javafx.ui.canvas.*; import javafx.ui.filter.*; import java.awt.Toolkit; Frame { var s = Toolkit.getDefaultToolkit().getScreenSize() title: "Hello" undecorated: true background: Color.WHITE width: s.width height: s.height content: Canvas { var text:Text content: text = Text { x: (s.width / 2) - (text.currentWidth / 2) y: (s.height / 2) - (text.currentHeight / 2) content: "Hello World! {s.width} x {s.height}" font: Font { face: FontFace.VERDANA, style: [ FontStyle.ITALIC, FontStyle.BOLD], size: 60 } } } visible: true }
dcterms:subject
abstract
  • This is a simple example showing "Hello World" centered on a fullscreen frame Preview SDK version package javafxapplication1; import javafx.ui.*; import javafx.ui.canvas.*; import javafx.ui.filter.*; import java.awt.Toolkit; Frame { var s = Toolkit.getDefaultToolkit().getScreenSize() title: "Hello" undecorated: true background: Color.WHITE width: s.width height: s.height content: Canvas { var text:Text content: text = Text { x: (s.width / 2) - (text.currentWidth / 2) y: (s.height / 2) - (text.currentHeight / 2) content: "Hello World! {s.width} x {s.height}" font: Font { face: FontFace.VERDANA, style: [ FontStyle.ITALIC, FontStyle.BOLD], size: 60 } } } visible: true } JavaFX SDK 1.2 package com.jfx.wikia; import javafx.scene.Scene; import javafx.stage.Stage; import javafx.scene.paint.Color; import javafx.stage.Screen; import javafx.scene.text.Text;import javafx.scene.text.Font; var text:Text = bind Text { x:(Screen.primary.visualBounds.width/2) y:(Screen.primary.visualBounds.height/2) content: "Hello World! {%5.0f Screen.primary.visualBounds.width} x {%5.0f Screen.primary.visualBounds.height}" font: Font { name: "Verdana Bold Italic" size: 24 } } Stage { fullScreen: true scene: Scene { fill: Color.WHITE content: [ text ] } }
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software