expand all tree nodes
@@ -121,8 +121,11 @@ public class SpatialRelationshipsSample extends Application {
rootItem.setExpanded(true);
relationships.setRoot(rootItem);
TreeItem<String> pointRelationships = new TreeItem<>("Point");
+ pointRelationships.setExpanded(true);
TreeItem<String> polylineRelationships = new TreeItem<>("Polyline");
+ polylineRelationships.setExpanded(true);
TreeItem<String> polygonRelationships = new TreeItem<>("Polygon");
+ polygonRelationships.setExpanded(true);
rootItem.getChildren().addAll(Arrays.asList(pointRelationships, polylineRelationships, polygonRelationships));
// and a mouse click listener to identify the selected graphic
