title: How to make a component fill a splitpane on JavaFX?
body: <p>I would like to add a component on one side of a JavaFX splitpane. How to make it fill the side panel of the splitpane ? It looks like hgrow and vgrow are not available on a splitpane.</p>
  
  <p>In fact, I'm trying to add a titled pane in a split pane. Here's the code :</p>
  
  <pre class="lang-java prettyprint-override"><code>public void start(Stage stage) throws Exception {
      TitledPane titledPane1 = new TitledPane("Panel 1", new Group());
      TitledPane titledPane2 = new TitledPane("Panel 2", new Group());
  
      SplitPane rootPane = new SplitPane();
      rootPane.getItems().add(titledPane1);
      rootPane.getItems().add(titledPane2);
  
      Scene scene = new Scene(rootPane);
      stage.setWidth(400);
      stage.setHeight(300);
      stage.setScene(scene);
      stage.show();
  
  }
  </code></pre>