< prev index next >

functional/ControlsTests/src/javafx/scene/control/test/utils/ptables/AbstractPropertyValueSetter.java

Print this page

        

@@ -27,11 +27,10 @@
 import java.lang.reflect.Method;
 import javafx.beans.property.Property;
 import javafx.event.ActionEvent;
 import javafx.event.EventHandler;
 import javafx.scene.control.Button;
-import javafx.scene.control.ButtonBuilder;
 import javafx.scene.control.Control;
 import javafx.scene.control.Label;
 import static javafx.scene.control.test.utils.ptables.StaticLogger.*;
 import javafx.scene.layout.HBox;
 

@@ -70,11 +69,13 @@
 
         String labelDescription = btype.equals(BindingType.UNIDIRECTIONAL) ? "UNIDIR" : "BIDIR";
         getChildren().addAll(new Label(labelDescription.toUpperCase().substring(0, Math.min(15, labelDescription.length()) - 1)), leadingControl, binding.getVisualRepresentation());
 
         if (btype == BindingType.UNIDIRECTIONAL) {
-            Button setButton = ButtonBuilder.create().text("set").minWidth(38).id(SET_PREFIX + listeningProperty.getName().toUpperCase()).build();
+            Button setButton = new Button("set");
+            setButton.setMinWidth(38);
+            setButton.setId(SET_PREFIX + listeningProperty.getName().toUpperCase());
             setAction = new EventHandler<ActionEvent>() {
                 public void handle(ActionEvent t) {
                     //bindingTB.setSelected(false);I think, that is not obligative.
                     //But otherwise, exception will be thrown each time, when unidirectional binding is switched on.
                     Method setter;
< prev index next >