title: Setting a Text Area's text to align to the bottom
body: <p>I'm trying to create a GUI with JavaFXML and I am using a TextArea in it. When adding text to a TextArea, it defaults to putting the text at the top, and I would like the text to start at the bottom, and be added below the previous text when I append it. I am trying to emulate a terminal if that helps.</p>
  
  <p>Currently I'm using css to style the UI and change the coloring, which works great, I just cant get the text to obey. If there is a way to add a css property to the TextArea so the text aligns to bottom that would be great.</p>
  
  <p>This is all my code is doing functionally, taking whatever I type in a TextField and appending it to the text area above, which is disabled to keep users from typing in it.</p>
  
  <pre><code>textarea.appendText("\n" + textfield.getText());
  </code></pre>
  
  <p><strong>PS</strong> I have my code request focus on the text field like so:</p>
  
  <pre><code>@Override
  public void initialize(URL url, ResourceBundle rb) {
      Platform.runLater(new Runnable() {
  
          @Override
          public void run() {
              textfield.requestFocus();
          }
      });
  }
  </code></pre>
  
  <p>But how would I set the focus back to textfield if the user clicks off of it? I want the text to always be entered into the text field when typing while my application is selected, but if you click the text field, focus is removed and keystrokes aren't entered anywhere.</p>