Cancel the modification of a TableView cell
问题 I'd like to have an example which explains me how I can cancel an edit and reset the old value of a specific cell in a TableView that was edited but failed to pass through the validation. See the code below for more info. tcAantalDagen.setOnEditCommit(cell -> { int dagen = Integer.parseInt(cell.getNewValue()); if (Integer.parseInt(cell.getNewValue()) < 1 || Integer.parseInt(cell.getNewValue()) > 31) { // This shows an Alert Dialog Main.toonFoutbericht("Het item kan maar tussen 1 en 31 dagen