--- old/functional/SceneGraphTests/src/test/scenegraph/lcd/LcdAPITestApp.java 2017-02-15 15:58:07.099549522 +0300 +++ new/functional/SceneGraphTests/src/test/scenegraph/lcd/LcdAPITestApp.java 2017-02-15 15:58:07.039548963 +0300 @@ -26,9 +26,8 @@ import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.layout.VBox; -import javafx.scene.layout.VBoxBuilder; import javafx.scene.text.FontSmoothingType; -import javafx.scene.text.TextBuilder; +import javafx.scene.text.Text; import test.javaclient.shared.InteroperabilityApp; import test.javaclient.shared.Utils; @@ -50,37 +49,26 @@ @Override protected Scene getScene() { - VBox root = VBoxBuilder.create() - .padding(new Insets(10)) - .spacing(10) - .children( - TextBuilder.create() - .id("GrayGray") - .text("Text") - .fontSmoothingType(FontSmoothingType.GRAY) - .style("-fx-font-size: 16;-fx-font-smoothing-type: gray; ") - .build(), - TextBuilder.create() - .id("LCDGray") - .text("Text") - .fontSmoothingType(FontSmoothingType.LCD) - .style("-fx-font-size: 16;-fx-font-smoothing-type: gray; ") - .build(), - TextBuilder.create() - .id("GrayLCD") - .text("Text") - .fontSmoothingType(FontSmoothingType.GRAY) - .style("-fx-font-size: 16;-fx-font-smoothing-type: lcd; ") - .build(), - TextBuilder.create() - .id("LCDLCD") - .text("Text") - .fontSmoothingType(FontSmoothingType.LCD) - .style("-fx-font-size: 16;-fx-font-smoothing-type: lcd;") - .build() - ) - .build(); - + VBox root = new VBox(); + root.setPadding(new Insets(10)); + root.setSpacing(10); + Text t1 = new Text("Text"); + t1.setId("GrayGray"); + t1.setFontSmoothingType(FontSmoothingType.GRAY); + t1.setStyle("-fx-font-size: 16;-fx-font-smoothing-type: gray; "); + Text t2 = new Text("Text"); + t2.setId("LCDGray"); + t2.setFontSmoothingType(FontSmoothingType.LCD); + t2.setStyle("-fx-font-size: 16;-fx-font-smoothing-type: gray; "); + Text t3 = new Text("Text"); + t3.setId("GrayLCD"); + t3.setFontSmoothingType(FontSmoothingType.GRAY); + t3.setStyle("-fx-font-size: 16;-fx-font-smoothing-type: lcd; "); + Text t4 = new Text("Text"); + t4.setId("LCDLCD"); + t4.setFontSmoothingType(FontSmoothingType.LCD); + t4.setStyle("-fx-font-size: 16;-fx-font-smoothing-type: lcd;"); + root.getChildren().addAll(t1, t2, t3, t4); return new Scene(root, 200, 200); } }