Uses of Class
javax.swing.undo.CannotUndoException
Package
Description
Provides classes and interfaces that deal with editable and noneditable text
components.
Allows developers to provide support for undo/redo in applications such as
text editors.
-
Uses of CannotUndoException in javax.swing.text
-
Uses of CannotUndoException in javax.swing.undo
Modifier and TypeMethodDescriptionvoid
AbstractUndoableEdit.undo()
ThrowsCannotUndoException
ifcanUndo
returnsfalse
.void
CompoundEdit.undo()
Sendsundo
to all containedUndoableEdits
in the reverse of the order in which they were added.void
UndoableEdit.undo()
Undo the edit.void
UndoManager.undo()
Undoes the appropriate edits.void
UndoManager.undoOrRedo()
Convenience method that invokes one ofundo
orredo
.protected void
UndoManager.undoTo(UndoableEdit edit)
Undoes all changes from the index of the next edit toedit
, updating the index of the next edit appropriately.