title: Java FX TextArea Alignment
body: <p>I want to display a text inside a Java FX Text area.</p>
  
  <p>My code is:</p>
  
  <pre><code>TextArea txt = new TextArea();
  txt.setEditable(false);
  txt.setStyle("-fx-font-alignment: center");
  txt.setText(text);
  </code></pre>
  
  <p>But I'm not able to set a text alignment (inside the <code>TextArea</code>)</p>
  
  <p>I tried this:</p>
  
  <pre><code>txt.setStyle("-fx-font-alignment: center");
  </code></pre>
  
  <p>But it didn't work</p>