Closed wadoon closed 7 years ago
https://stackoverflow.com/questions/22211860/javafx-tab-through-editable-cells
textField.setOnKeyPressed(new EventHandler<KeyEvent>() { @Override public void handle(KeyEvent t) { if (t.getCode() == KeyCode.ENTER) { commitEdit(Integer.parseInt(textField.getText())); } else if (t.getCode() == KeyCode.ESCAPE) { cancelEdit(); } else if (t.getCode() == KeyCode.TAB) { commitEdit(Integer.parseInt(textField.getText())); TableColumn nextColumn = getNextColumn(!t.isShiftDown()); if (nextColumn != null) { getTableView().edit(getTableRow().getIndex(), nextColumn); } } } });
change selectionmodel
implemented on branch advancedTable
https://stackoverflow.com/questions/22211860/javafx-tab-through-editable-cells