Uses of Class javax.swing.undo.CompoundEdit (Java Platform SE 8 )
Date: 2026-04-24

## Uses of Class
javax.swing.undo.CompoundEdit

- Packages that use CompoundEdit
  Package | Description
  --- | ---
  javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components.
  javax.swing.undo | Allows developers to provide support for undo/redo in applications such as text editors.

- - ### Uses of CompoundEdit in javax.swing.text

    Subclasses of CompoundEdit in javax.swing.text
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractDocument.DefaultDocumentEvent` Stores document changes as the document is being modified.

  - ### Uses of CompoundEdit in javax.swing.undo

    Subclasses of CompoundEdit in javax.swing.undo
    Modifier and Type | Class and Description
    --- | ---
    `class` | `UndoManager` `UndoManager` manages a list of `UndoableEdits`, providing a way to undo or redo the appropriate edits.

    Fields in javax.swing.undo declared as CompoundEdit
    Modifier and Type | Field and Description
    --- | ---
    `protected CompoundEdit` | UndoableEditSupport.`compoundEdit`

    Methods in javax.swing.undo that return CompoundEdit
    Modifier and Type | Method and Description
    --- | ---
    `protected CompoundEdit` | UndoableEditSupport.`createCompoundEdit()` Called only from `beginUpdate`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.