title: JavaFX: Change cell color after adding new row to the table
body: <p>I have a program that reads certain files and then displays the values in a table. The user can add new rows via a button.</p>
  
  <p>Now I want to change the background color of the added line so that it is visible to the user what is new and what is old.</p>
  
  <p>My question now is, how can I select the new line directly and then change the background color?</p>
  
  <p>I know you how to get a single cell position with the class <strong>TablePosition</strong>.    </p>
  
  <p><strong>Example</strong></p>
  
  <pre><code>TablePosition pos = tableView.getSelectionModel().getSelectedCells().get(0);
  int row = pos.getRow();
  int col = pos.getColumn();
  TableColumn column = pos.getTableColumn();
  </code></pre>
  
  <p>But how does it works if I want the entire row?</p>
  
  <p><strong>Expected Result</strong></p>
  
  <p>In the end I expect that I can the added row gets selected so that I can change the background color.</p>