title: javafx tableview data from List
body: <p>I've got problem with TableView in JavaFX.</p>
  
  <p>Creating tables from existing class with all fields defined is easy.</p>
  
  <p>But I'm wondering if it is possible to make table and add data from List?</p>
  
  <p>I've made something like this but it kinda doesn't work.</p>
  
  <pre><code>    @FXML
      private TableView&lt;List&lt;String&gt;&gt; testTable;
  
      ....
  
  
      List&lt;String&gt; list = new ArrayList&lt;&gt;();
      list.add("1hello");
      list.add("1hello2");
  
      List&lt;String&gt; list2 = new ArrayList&lt;&gt;();
      list2.add("2hello");
      list2.add("2hello2");
  
      ObservableList&lt;List&lt;String&gt;&gt; lists = FXCollections.observableArrayList();
      lists.add(list);
      lists.add(list2);
  
      TableColumn&lt;List&lt;String&gt;, String&gt; coll = new TableColumn&lt;&gt;("one");
      coll.setCellValueFactory(new PropertyValueFactory&lt;List&lt;String&gt;,String&gt;(""));
      TableColumn&lt;List&lt;String&gt;, String&gt; coll2 = new TableColumn&lt;&gt;("two");
      coll2.setCellValueFactory(new PropertyValueFactory&lt;List&lt;String&gt;,String&gt;(""));
  
      testTable.getColumns().add(coll);
      testTable.getColumns().add(coll2);
  
      lists.forEach(li -&gt; {
          System.out.println("list: " +  li);
          testTable.getItems().add(li);
  
      }); 
  </code></pre>
  
  <p>It didn't insert any data. Is something like that even possible? </p>