List of usage examples for javafx.scene Scene setFill
public final void setFill(Paint value)
From source file:Main.java
@Override public void start(Stage stage) { Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);// w w w . j a va 2 s.c om final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); stage.close(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(); VBox box = new VBox(); box.getChildren().add(choiceBox);//from w w w. j a v a 2 s . c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);/*from w w w . j a v a 2 s. c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); stage.toFront(); }
From source file:Main.java
@Override public void start(Stage stage) { Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);/*from w ww . j av a 2 s.c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); stage.toBack(); }
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.DECORATED); Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);//from w w w . j ava2 s. c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.UNDECORATED); Text text = new Text("Transparent!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);//w ww .j av a 2s . c om final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.UTILITY); Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);//from www.j av a 2 s .c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(cursors); System.out.println(choiceBox.getSelectionModel()); VBox box = new VBox(); box.getChildren().add(choiceBox);//www. ja va 2 s. c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(cursors); System.out.println(choiceBox.converterProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox);/* w w w .ja va 2 s . c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Text text = new Text("!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);/* w w w . ja v a 2 s .co m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); stage.setFullScreen(true); }