primaryStage.setTitle("JCGP");
// this pane holds the entire scene, that is its sole job.
Pane sceneParent = new Pane();
// the experiment layer should fill the entire scene parent
experimentLayer.prefHeightProperty().bind(sceneParent.heightProperty());
experimentLayer.prefWidthProperty().bind(sceneParent.widthProperty());
// the function selector goes over the experiment layer so it doesn't get covered by other panes
sceneParent.getChildren().addAll(experimentLayer, functionSelector);
// set the scene, minimum sizes, show