title: How to get selected TableCell in JavaFX TableView
body: <p>I am looking for a way to get the selected cell of a TableView control. Note that I don't just want the cell value, I want an actual TableCell object. One would expect that the method:</p>
  
  <pre><code>tableView.getSelectionModel().getSelectedCells().get(0)
  </code></pre>
  
  <p>does just that, but it returns a TablePosition object, which gives you row and column information, but I don't see a way to get TableCell object from that.</p>
  
  <p>The reason I need this is because I want to respond to a key press, but attaching an event filter to TableCell does not work (probably because it is not editable). So I attach it to TableView, but then I need to get the currently selected cell.</p>
  
  <p>EDIT: For future readers: DO NOT mess with TableCell objects, except in cell factory. Use the TableView the way designers intended, or you will be in lot of trouble. If you need data from multiple sources in single table, it is better to make a new class that aggregates all the data and use that as a TableView source.</p>