title: JavaFX Have multiple Panes in one scene?
body: <p>I am trying to make an application which will have a date at the top (always automatically centered) and content at the bottom which is not going to be aligned to any direction. </p>
  
  <p>I figured the best way to do this would be to have: </p>
  
  <pre><code>Pane normalLayout = new Pane();
  StackPane centeredLayout = new Stackpane();
  Label centeredText = new Label("I want this text centered!");
  Button unorganizedButton = new Button("Press me");
  centeredLayout.getChildren().add(centeredText);
  normalLayout.getChildren().add(unorganizedButton);
  </code></pre>
  
  <p>But then I can't do something like: </p>
  
  <pre><code>Scene myScene = new Scene(centeredLayout, normalLayout, 500, 500);
  Window myWindow = new Window();
  myWindow.setScene(myScene);
  myWindow.show();
  </code></pre>
  
  <p>So how can this be done? How can multiple panes exist on the same scene?</p>