functional/FXCssTests/src/test/css/stylesheets/StylesheetApp.java

Print this page

        

@@ -30,11 +30,11 @@
 import javafx.geometry.Pos;
 import javafx.scene.Scene;
 import javafx.scene.input.MouseEvent;
 import javafx.scene.layout.Pane;
 import javafx.scene.layout.StackPane;
-import javafx.scene.layout.VBoxBuilder;
+import javafx.scene.layout.VBox;
 import javafx.scene.text.Text;
 import javafx.stage.Stage;
 import test.javaclient.shared.Utils;
 
 /**

@@ -69,11 +69,14 @@
                 styleIndex = styleIndex == 0 ? 1 : 0;
                 scene.getStylesheets().set(0, styles[styleIndex]);
             }
         });
         scene.getStylesheets().add(styles[styleIndex]);
-        pane.getChildren().add(VBoxBuilder.create().alignment(Pos.CENTER).spacing(50).children(golden, button).build());
+        VBox temp = new VBox(golden, button);
+        temp.setAlignment(Pos.CENTER);
+        temp.setSpacing(50);
+        pane.getChildren().add(temp);
         stage.setScene(scene);
         stage.setTitle("Test for RT-17348." + VersionInfo.getRuntimeVersion());
         stage.show();
     }