title: Resize TextArea horizontally and vertically
body: <p>I created a basic layout in JavaFX. How can I get the <code>TextArea</code> on the bottom left to resize to use the complete available whitespace? For now it just resizes horizontally but not vertically.</p>
  
  <p>The code: </p>
  
  <pre><code>public VBox addVBoxLeft() {
  
      VBox vBoxLeft = new VBox();
      vBoxLeft.setSpacing(10);
      vBoxLeft.setPadding(new Insets(10));
  
      //Content vBoxLeft
      Text titleGamesAvailable = new Text("Games available:");
      titleGamesAvailable.setFont(Font.font("Arial", FontWeight.BOLD, 14));
      TextArea chatHistory = new TextArea();
      chatHistory.setText("...");
      chatHistory.setEditable(false);
      chatHistory.setWrapText(true);
      chatHistory.setPrefColumnCount(2);
  
      vBoxLeft.setAlignment(Pos.TOP_LEFT);
      vBoxLeft.getChildren().addAll(titleGamesAvailable, availableGamesList(),chatHistory);
  
      return vBoxLeft;
  }
  
  private ListView&lt;String&gt; availableGamesList() {
      this.availableGamesListView = new ListView&lt;String&gt;();
      availableGamesListView.setItems(gamelist);
      return availableGamesListView;
  }
  
  public VBox addVBoxRight() {
      VBox vboxRight = new VBox();
      vboxRight.setPadding(new Insets(10));
      vboxRight.setSpacing(8);
  
      Text title = new Text("Users online:");
      title.setFont(Font.font("Arial", FontWeight.BOLD, 14));
  
      this.userOnlineListView = new ListView&lt;String&gt;();
      this.userlist = FXCollections.observableArrayList();
      userOnlineListView.setItems(userlist);
      VBox.setVgrow(userOnlineListView, Priority.ALWAYS);
      vboxRight.getChildren().addAll(title, userOnlineListView);
  
      return vboxRight;
  }
  
  private void _showView() {
      this.primaryStage = new Stage();
      primaryStage.setTitle("Carcassonne");
  
      // Als Grundlayout dient Borderpane
      BorderPane border = new BorderPane();
      border.setPrefSize(1024, 768);
  
      // HBox hbox = addHBox();
      border.setTop(addHBoxTop());
      border.setCenter(addVBoxLeft());
      border.setRight(addVBoxRight());
  
  
      Scene scene = new Scene(border);
  
      primaryStage.setScene(scene);
      primaryStage.setTitle("Lobby");
      primaryStage.setMinHeight(600);
      primaryStage.setMinWidth(800);
      primaryStage.setFullScreen(false);
      primaryStage.show();
  }
  </code></pre>
  
  <p>Screenshot: </p>
  
  <p><img src="https://i.stack.imgur.com/IzKFB.jpg" alt="enter image description here"></p>