title: Edit the cell value at a dynamic TableView?
body: <p>Is it possible to edit a cell value in a dynamic TableView (dynamic rows and dynamic columns)?</p>
  <p>All I found on the internet was some editable TextFields over the cells.<br />
  However, I want to edit the value in the table and then update my List with the new data.</p>
  <p>I'm using IntelliJ IDEA 13.1.4 , JavaFX Scene Builder 2.0 and the newest JavaFX version.</p>
  <p>Here is the code, where I create the dynamic rows and columns:</p>
  <pre><code>public List&lt;String[]&gt; jdata = new LinkedList&lt;&gt;(); //Here is the data
  private TableView&lt;String[]&gt; sourceTable;
  private ObservableList&lt;String[]&gt; srcData;
  .
  .
  .
  
  int clms;
      
      public void showTable(Convert cnv) {
          clms = cnv.getColums(); //number of the columns
  
          for (int i = 0; i &lt; clms; i++) {
              TableColumn&lt;String[], String&gt; firstNameCol = new TableColumn&lt;&gt;(&quot;\tC&quot;+(i+1)+&quot; \t&quot;);
              firstNameCol.setMinWidth(20);
              int index = i ;
              firstNameCol.setCellValueFactory(cellData -&gt; {
                  String[] rowData = cellData.getValue();
                  if (index &gt;= rowData.length) {
                      return new ReadOnlyStringWrapper(&quot;&quot;);
                  } else {
                      String cellValue = rowData[index];
                      return new ReadOnlyStringWrapper(cellValue);
                  }
              });
              sourceTable.getColumns().add(firstNameCol);
          }
          srcData = FXCollections.observableList(jdata);
          sourceTable.getItems().addAll(srcData);
      }
  </code></pre>