List of usage examples for javafx.scene.layout VBox getChildren
@Override
public ObservableList<Node> getChildren()
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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w ww .j a v a 2 s. com*/ 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w ww . j av a 2s . c om*/ 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//w ww. ja v a2s .c o m stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Label msg = new Label("java2s.com"); msg.setStyle("-fx-text-fill: blue;"); VBox root = new VBox(); root.getChildren().add(msg); Scene scene = new Scene(root, 300, 50); stage.setScene(scene);// ww w. j a v a 2s.co m stage.setTitle("Hello JavaFX Application with a 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w . jav a 2 s . co m 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w ww. j a v a 2s .c o m 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w. j a v a 2 s .c o m 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w . j ava 2s . co m stage.setScene(scene); stage.show(); stage.setFullScreen(true); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.itemsProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w w w .j a va 2 s . c om stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.selectionModelProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w .j av a 2 s. co m stage.setScene(scene); stage.show(); }