1 Reply Latest reply on Dec 27, 2012 7:39 PM by 964914

    Edit a cell programatically

      How to start editing a specific cell in a table view programmatically. For example, I have a table view with a column. Whenever the user clicks on any row's cell, the cell value factory is called and start edit method is invoked in that cell. Now cell's content is replaced with a text field and allows the user to edit. Now I want to do this programmtically say for example edit row 5 and column 1.
      There is API to select a particular cell. but how to invoke its startEdit method.

      getTableView().getSelectionModel().clearAndSelect(getTableView().getSelectionModel().getSelectedIndex() + 1, getTableColumn());

      any help will be very helpful.