public final void cancelEdit ()

If the field is currently being edited, this call will set text to the last commited value.

Since:  JavaFX 8u40