title: How to use the PropertyValueFactory correctly?
body: <p>I am trying to make a table with a TableView and fill it programmatically based on a list of <code>User</code> objects. The <code>User</code> has three variables, <code>nameProperty</code> (String), <code>rankProperty</code> (Enum called Rank), and <code>netMeritsProperty</code> (int). These are all stored in <code>SimpleStringProperty</code> objects. My problem is that the data will not appear in the actual table, as shown here:</p>
  
  <p><img src="https://i.stack.imgur.com/3Wskc.png" alt=""></p>
  
  <p>Here is my code for the table. What am I not understanding?</p>
  
  <pre><code>TableColumn&lt;User, String&gt; name = new TableColumn&lt;&gt;("Name");
  name.setCellValueFactory(new PropertyValueFactory&lt;User, String&gt;("nameProperty"));
  
  TableColumn&lt;User, String&gt; rank = new TableColumn&lt;&gt;("Rank");
  rank.setCellValueFactory(new PropertyValueFactory&lt;User, String&gt;("rankProperty"));
  
  TableColumn&lt;User, String&gt; netMerits = new TableColumn&lt;&gt;("Net Merits");
  netMerits.setCellValueFactory(new PropertyValueFactory&lt;User, String&gt;("netMeritsProperty"));
  
  userTable.getColumns().addAll(name, rank, netMerits);
  </code></pre>