title: JavaFX: setHgrow(...) doesn't work
body: <p>I couldn't get the Elements in my HBox to grow, so I downloaded the following example code from <a href="http://www.java2s.com/Code/Java/JavaFX/LetonlyonecontrolgrowinaHBox.htm" rel="noreferrer">java2s.com</a>. It serves as a minimal not working example:</p>
  
  <pre><code>package fxtest;
  
  import javafx.application.Application;
  import javafx.scene.Group;
  import javafx.scene.Scene;
  import javafx.scene.control.Button;
  import javafx.scene.control.Label;
  import javafx.scene.control.TextField;
  import javafx.scene.layout.HBox;
  import javafx.scene.layout.Priority;
  import javafx.scene.paint.Color;
  import javafx.stage.Stage;
  
  public class Fxtest extends Application {
      public static void main(String[] args) {
          Application.launch(args);
      }
  
      @Override
      public void start(Stage primaryStage) {
          primaryStage.setTitle("");
          Group root = new Group();
          Scene scene = new Scene(root, 600, 250, Color.WHITE);
  
          HBox hbox = new HBox();
          TextField field = new TextField();
          HBox.setHgrow(field, Priority.ALWAYS);
          hbox.getChildren().addAll(new Label("Search:"), field, new Button("Go"));
  
  
          root.getChildren().add(hbox);
          primaryStage.setScene(scene);
          primaryStage.show();
      }
  }
  </code></pre>
  
  <p>The result looks <a href="http://i.imgur.com/KmtQj7r.png" rel="noreferrer">like this</a>.</p>
  
  <p>If I understand it correctly, the TextField should grow, shouldn't it?</p>
  
  <p>My Java Version is 1.7.0_51</p>
  
  <p>My JavaFX Version is 2.2.51-b13</p>
  
  <p>Do you know why it isn't working/what I have to do?
  Thanks!</p>