functional/ControlsTests/src/javafx/scene/control/test/chooser/FXChooser.java

Print this page

        

@@ -31,11 +31,10 @@
 import javafx.event.EventHandler;
 import javafx.scene.Scene;
 import javafx.scene.control.Button;
 import javafx.scene.control.Label;
 import javafx.scene.control.TextField;
-import javafx.scene.control.TextFieldBuilder;
 import javafx.scene.control.Tooltip;
 import javafx.scene.layout.GridPane;
 import javafx.scene.text.Text;
 import javafx.stage.DirectoryChooser;
 import javafx.stage.FileChooser;

@@ -57,12 +56,14 @@
 
     @Override
     public void start(final Stage stage) throws Exception {
         try {
             extensionFilter = new FileChooser.ExtensionFilter("File with extension (*.extension)", "*.extension");
-            initialFileNameTextField = TextFieldBuilder.create().text("").promptText("Initial file name").build();
-            titleTextField = TextFieldBuilder.create().text("").promptText("Title").build();
+            initialFileNameTextField = new TextField("");
+            initialFileNameTextField.setPromptText("Initial file name");
+            titleTextField = new TextField("");
+            titleTextField.setPromptText("Title");
             errorText = new Label("No errors");
 
             //                  OPEN FOLDER
             final DirectoryChooser directoryChooser = new DirectoryChooser();