List of usage examples for javafx.scene.layout VBox getChildren
@Override
public ObservableList<Node> getChildren()
From source file:User.java
@Override public void start(Stage primaryStage) { this.primaryStage = primaryStage; user = new User(); primaryStage.initStyle(StageStyle.TRANSPARENT); root = new Group(); Scene scene = new Scene(root, 320, 112, Color.rgb(0, 0, 0, 0)); primaryStage.setScene(scene);/*from w w w .ja v a 2 s. c o m*/ Rectangle background = this.drawRectangleBackground(); HBox row1 = this.drawRow1(); HBox row2 = this.drawRow2(); VBox formLayout = new VBox(4); // spacing formLayout.setLayoutX(12); formLayout.setLayoutY(12); formLayout.getChildren().addAll(row1, row2); root.getChildren().addAll(background, formLayout); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//w ww. j a v a2 s. c om Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getEndX()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w. j a va 2 s . c o m Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getEndY()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w ww. j av a 2s .c o m*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getStartY()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w w w. j ava2s. c o m*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getStartX()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/* w w w. jav a 2 s . c om*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.endYProperty()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w ww . j a v a2s . c o m*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.endXProperty()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w w w . j a v a 2 s . com Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.startYProperty()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w. jav a 2 s.c om Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.startXProperty()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("VBox Test"); VBox vb = new VBox(); vb.setPadding(new Insets(10, 50, 50, 50)); vb.setSpacing(10);/*from w w w .j av a 2s . c o m*/ vb.setFillWidth(true); System.out.println(vb.getSpacing()); Label lbl = new Label("VBox"); lbl.setFont(Font.font("Amble CN", FontWeight.BOLD, 24)); vb.getChildren().add(lbl); Button btn1 = new Button(); btn1.setText("Button1"); vb.getChildren().add(btn1); Button btn2 = new Button(); btn2.setText("Button2"); vb.getChildren().add(btn2); Button btn3 = new Button(); btn3.setText("Button3"); vb.getChildren().add(btn3); Button btn4 = new Button(); btn4.setText("Button4"); vb.getChildren().add(btn4); // Adding VBox to the scene Scene scene = new Scene(vb); primaryStage.setScene(scene); primaryStage.show(); }