--- old/functional/FXCssTests/src/test/css/stylesheets/StylesheetApp.java 2016-12-09 13:28:09.626741257 +0300 +++ new/functional/FXCssTests/src/test/css/stylesheets/StylesheetApp.java 2016-12-09 13:28:09.574740791 +0300 @@ -32,7 +32,7 @@ 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; @@ -45,15 +45,15 @@ public final static String EXAMPLE_ID = "example"; private static int WIDTH = 300; private static int HEIGHT = 300; - - + + private static String[] styles = new String[]{ StylesheetApp.class.getResource("/test/css/resources/rt-17348_1.css").toExternalForm(), StylesheetApp.class.getResource("/test/css/resources/rt-17348_2.css").toExternalForm() }; - + private int styleIndex = 0; - + @Override public void start(Stage stage) throws Exception { StackPane pane = new StackPane(); @@ -71,12 +71,15 @@ } }); 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(); } - + public static void main(String[] args) { Utils.launch(StylesheetApp.class, null); }