< prev index next >

functional/ControlsTests/src/javafx/scene/control/test/tooltip/NewTooltipApp.java

Print this page

        

@@ -71,11 +71,12 @@
         }
 
         @Override
         final protected void prepareScene() {
             pane = new Pane();
-            testedTooltip = TooltipBuilder.create().id(TESTED_TOOLTIP_ID).build();
+            testedTooltip = new Tooltip();
+            testedTooltip.setId(TESTED_TOOLTIP_ID);
 
             tb = new PropertiesTable(testedTooltip);
             PropertyTablesFactory.explorePropertiesList(testedTooltip, tb);
 
             Button button = new Button("Tooltip attached.");

@@ -91,11 +92,12 @@
 
             HBox hb = (HBox) getRoot();
             hb.setPadding(new Insets(5, 5, 5, 5));
             hb.setStyle("-fx-border-color : green;");
 
-            Button resetButton = ButtonBuilder.create().id(RESET_BUTTON_ID).text("Reset").build();
+            Button resetButton = new Button("Reset");
+            resetButton.setId(RESET_BUTTON_ID);
             resetButton.setOnAction(new EventHandler<ActionEvent>() {
                 public void handle(ActionEvent t) {
                     HBox hb = (HBox) getRoot();
                     hb.getChildren().clear();
                     prepareScene();
< prev index next >