title: ListView using custom cell factory doesn't update after items deleted
body: <p>I'm learning JavaFX and i wanted to create a cell factory which is working properly until i want to delete a row from my <code>ListView</code>:</p>
  
  <pre class="lang-java prettyprint-override"><code>plateList.setCellFactory(new Callback&lt;ListView&lt;Car&gt;, ListCell&lt;Car&gt;&gt;() {
  
      @Override
      public ListCell&lt;Car&gt; call(ListView&lt;Car&gt; param) {
          ListCell&lt;Car&gt; cell = new ListCell&lt;Car&gt;() {
  
              @Override
              protected void updateItem(Car item, boolean empty) {
                  super.updateItem(item, empty);
                  if (item != null) {
                      setText(item.getPlate());
                  }
              }
          };
          return cell;
      }
  });
  </code></pre>
  
  <p>I'm populating the <code>ListView</code> with some sample data:</p>
  
  <pre class="lang-java prettyprint-override"><code>ObservableList&lt;Car&gt; sample = FXCollections.observableArrayList();
  sample.add(new Car("123-abc", "opel", "corsa", 5.5));
  sample.add(new Car("123-cba", "vw", "passat", 7.5));
  plateList.setItems(sample);
  </code></pre>
  
  <p>Now i will see what i expect the <code>ListView</code> will be the following:</p>
  
  <ul>
  <li>123-abc</li>
  <li>123-cba</li>
  </ul>
  
  <p>How ever if delete a row ex: the first row (123-abc), the <code>ListView</code> will look like this:</p>
  
  <ul>
  <li>123-cba</li>
  <li>123-cba</li>
  </ul>
  
  <p>This is the delete part:</p>
  
  <pre class="lang-java prettyprint-override"><code>@FXML
  private void deleteBtnAction() {
      plateList.getItems().remove(plateList.getSelectionModel().getSelectedItem());
      ObservableList&lt;Car&gt; t = plateList.getItems();
      plateList.setItems(t);
  }
  </code></pre>
  
  <p>If i remove the cell factory the program works as intended. 
  Any help is greatly appreciated.</p>