< prev index next >
functional/ControlsTests/src/javafx/commons/ControlChooserApp.java
Print this page
*** 37,49 ****
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;
/**
*
--- 37,47 ----
*** 53,65 ****
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();
public static void main(String[] args) {
Utils.launch(javafx.commons.ControlChooserApp.class, args);
}
--- 51,61 ----
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;
public static void main(String[] args) {
Utils.launch(javafx.commons.ControlChooserApp.class, args);
}
*** 104,113 ****
--- 100,112 ----
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,133 ****
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();
!
HBox hBox = new HBox(10);
hBox.setAlignment(Pos.TOP_LEFT);
hBox.getChildren().addAll(
vBox,
propertiesPane);
--- 118,129 ----
VBox controls = new VBox(10);
controls.setAlignment(Pos.CENTER);
controls.getChildren().add(createNodeChooser());
controls.setStyle("-fx-border-color:GREEN");
! 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 >