public final void undo ()

If possible, undoes the last modification. If isUndoable() returns false, then calling this method has no effect.

Since:  JavaFX 8u40