title: Set TextField width in JavaFX
body: <p>How I can set the width of a <code>TextField</code> in JavaFX?</p>
  
  <pre><code>TextField userTextField = new TextField();
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>TextField userTextField = new TextField();
  userTextField.setPrefWidth(80);
  </code></pre>
  
  <p>But I don't see any change.</p>