title: How to center a node within a pane javafx
body: <p>How do I create a Pane and have a child <code>Node</code> put at the center?</p>
  
  <p>Lets say the <code>Pane</code> is <code>500</code> by <code>500</code> and the <code>Node</code> is an <code>ImageView</code> with a <code>200</code> by <code>200</code> <code>Image</code></p>
  
  <pre><code>ImageView view = new ImageView();
  
  Image img = new Image("test.png");
  view.setImage(img);
  Pane pane = new Pane();
  pane.setMinWidth(500);
  pane.setMinHeight(500);
  pane.getChildren().add(view);
  </code></pre>