< prev index next >
functional/ControlsTests/src/javafx/commons/ControlChooserApp.java
Print this page
@@ -37,13 +37,11 @@
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Label;
import javafx.scene.control.test.utils.ptables.PropertiesTable;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
-import javafx.scene.layout.PaneBuilder;
import javafx.scene.layout.VBox;
-import javafx.scene.layout.VBoxBuilder;
import test.javaclient.shared.InteroperabilityApp;
import test.javaclient.shared.Utils;
/**
*
@@ -53,13 +51,11 @@
public static final String NODE_CHOOSER_ID = "nodeChooser";
public static final String TESTED_CONTROL_ID = "target";
private VBox spaceForNode;
private PropertiesTable propertiesTable;
- private Pane propertiesPane = PaneBuilder.create()
- .style("-fx-border-color:BLUE")
- .build();
+ private Pane propertiesPane;
public static void main(String[] args) {
Utils.launch(javafx.commons.ControlChooserApp.class, args);
}
@@ -104,10 +100,13 @@
vb.getChildren().addAll(new Label("Choose tested control : "), cb);
return vb;
}
private Parent getContent() {
+ propertiesPane = new Pane();
+ propertiesPane.setStyle("-fx-border-color:BLUE");
+
spaceForNode = new VBox(10);
spaceForNode.setAlignment(Pos.CENTER);
spaceForNode.setMinWidth(300);
spaceForNode.setPrefWidth(300);
spaceForNode.setMaxWidth(300);
@@ -119,15 +118,12 @@
VBox controls = new VBox(10);
controls.setAlignment(Pos.CENTER);
controls.getChildren().add(createNodeChooser());
controls.setStyle("-fx-border-color:GREEN");
- VBox vBox = VBoxBuilder.create()
- .children(spaceForNode, controls)
- .spacing(10d)
- .build();
-
+ VBox vBox = new VBox(spaceForNode, controls);
+ vBox.setSpacing(10d);
HBox hBox = new HBox(10);
hBox.setAlignment(Pos.TOP_LEFT);
hBox.getChildren().addAll(
vBox,
propertiesPane);
< prev index next >