title: JavaFX 2: How to focus a table row programmatically?
body: <p>I am trying to select/focus a row of a <code>TableView</code> programmatically.</p>
  
  <p>I can select a row, but it is not getting rendered as <strong>focused</strong> (not highlighted). I have tried many combinations of the code below, but nothing seems to work.     </p>
  
  <pre><code>table.getSelectionModel().select(0);
  table.focusModelProperty().get().focus(new TablePosition(table, 0, column));
  table.requestFocus();
  </code></pre>
  
  <p>Is it possible to highlight a row programmatically?</p>
  
  <p>I am using JavaFX 2.2.21</p>