functional/SceneGraphTests/src/test/scenegraph/lcd/LCDTextTestApp.java

Print this page

        

*** 40,50 **** import javafx.scene.layout.VBox; import javafx.scene.shape.Rectangle; import javafx.scene.text.FontSmoothingType; import javafx.scene.text.Text; import javafx.scene.text.TextAlignment; - import javafx.scene.text.TextBuilder; import test.javaclient.shared.InteroperabilityApp; import test.javaclient.shared.Utils; /** * --- 40,49 ----
*** 98,113 **** collecionChoice.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TestCollections>() { public void changed(ObservableValue<? extends TestCollections> ov, TestCollections t, TestCollections newValue) { actionChoice.setItems(FXCollections.observableArrayList(newValue.getActions())); actionChoice.getSelectionModel().selectFirst(); ! lcdText = TextBuilder.create().text("Test text") ! .textAlignment(TextAlignment.CENTER) ! .style("-fx-font-size: 16;-fx-font-smoothing-type: lcd;") ! .fontSmoothingType(FontSmoothingType.LCD) ! .build(); ! leftPane.getChildren().clear(); leftPane.getChildren().add(lcdText); } }); --- 97,110 ---- collecionChoice.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TestCollections>() { public void changed(ObservableValue<? extends TestCollections> ov, TestCollections t, TestCollections newValue) { actionChoice.setItems(FXCollections.observableArrayList(newValue.getActions())); actionChoice.getSelectionModel().selectFirst(); ! lcdText = new Text("Test text"); ! lcdText.setTextAlignment(TextAlignment.CENTER); ! lcdText.setStyle("-fx-font-size: 16;-fx-font-smoothing-type: lcd;"); ! lcdText.setFontSmoothingType(FontSmoothingType.LCD); leftPane.getChildren().clear(); leftPane.getChildren().add(lcdText); } });