title: JavaFX Centering VBox inside GridPane
body: <p>would really appreciate some help with my problem.</p>
  
  <p>I'm using JavaFX and the NetBeans IDE.
  
  I am making a very simple launch window for a desktop client.
  The window currently looks like this image.</p>
  
  <p>Current Look: </p>
  
  <p><img src="https://i.stack.imgur.com/2zsAA.png" alt="current look"></p>
  
  <p>Wanted Look (editted with paint): </p>
  
  <p><img src="https://i.stack.imgur.com/zJmP3.png" alt="wanted look"></p>
  
  <p>In other words, I want the buttons to be:</p>
  
  <ol>
  <li>centered underneath the 'Welcome' text </li>
  <li>maintain their current width</li>
  </ol>
  
  <p>My current setup is:</p>
  
  <p>I have a GridPane acting as the root. Not sure why JavaFX chose to use (col,row), but that's how I'll represent my setup in the following:</p>
  
  <ul>
  <li>@GridPane(0,0) -> 'Welcome' Text</li>
  <li>@GridPane(0,1) -> VBox (this VBox contains the 2 buttons shown in above image)</li>
  </ul>
  
  <p>The relevant code (or what I think is relevant, please correct me if I am wrong) is below:</p>
  
  <p></p>
  
  <pre><code>//adds GridPane to Scene
  GridPane grid = new GridPane();
  RowConstraints row1 = new RowConstraints();
  row1.setPercentHeight(25);
  grid.getRowConstraints().add(row1);
  grid.setAlignment(Pos.CENTER);
  Scene scene = new Scene(grid, 400, 300,Color.WHITESMOKE);
  
  //Create welcome message and add it to grid, and align it to the center
  Text sceneTitle = new Text("Welcome");
  grid.add(sceneTitle,0,0);
  GridPane.setHalignment(sceneTitle,HPos.CENTER);
  
  //Create buttons and fix their widths
  Button newBtn = new Button("Create New Project");
  Button loadBtn = new Button("Load Existing Project");
  newBtn.setMaxWidth(150);
  loadBtn.setMaxWidth(150);
  
  //Create a VBox, add children to it, and then add it to the grid
  VBox vBtns = new VBox();
  vBtns.setSpacing(5);
  vBtns.getChildren().addAll(newBtn,loadBtn);
  grid.add(vBtns,0,1);
  </code></pre>
  
  <p></p>
  
  <p>I've tried a lot of different things.. to mention some of the more 'logical' ones:</p>
  
  <p></p>
  
  <pre><code>//1. Center the VBox within its current GridPane cell
  GridPane.setHalignment(vBtns,HPos.CENTER);
  
  //2. Center the buttons within the VBox 
  newBtn.setAlignment(Pos.CENTER);
  loadBtn.setAlignment(Pos.CENTER);
  </code></pre>
  
  <p></p>
  
  <p>I've never been good at GUI programming. It's very discouraging when something that should be so simple takes so long to figure out.
  Are there any developers out there who can help me find a solution?</p>