title: Add String row to TableView in JAVA FX
body: <p>I can't find a way to add a simple "String" row to my tableView.
  In fact i can add a row but its content is <strong>not visible</strong> ... </p>
  
  <p>Here is my code:</p>
  
  <pre><code>@FXML
  private TableView&lt;String&gt; table; 
  
  @FXML
  private TableColumn&lt;String, String&gt; table2;
  
  public ObservableList&lt;String&gt; getLanes()
  {
      ObservableList&lt;String&gt; lanes=FXCollections.observableArrayList();
      lanes.add("TEST");
  
      return lanes;
  }
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>table.setItems(getLanes()); //Not working
  </code></pre>
  
  <p>and </p>
  
  <pre><code>table.getItems().add("TEST"); //Not working
  </code></pre>
  
  <p>But without success.
  I read <a href="https://stackoverflow.com/questions/16911647/populating-tableview-in-javafx">that</a> and <a href="http://docs.oracle.com/javafx/2/ui_controls/table-view.htm" rel="nofollow noreferrer">that</a> as well as other documentations but it did not help me to do it in this simple way.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Adding this line solved my problem:</p>
  
  <pre><code>table2.setCellValueFactory(param -&gt; new ReadOnlyStringWrapper(param.getValue()));
  </code></pre>