public class UndoRedoHandler extends Object
UndoRedoHandler undoRedoHandler = UndoRedoHandler.attach(textComponent);
...
// Later, detach the handler, if desired:
undoRedoHandler.detach();
| Modifier and Type | Method and Description |
|---|---|
static UndoRedoHandler |
attach(JTextComponent textComponent)
Attach an undo/redo handler to the given text component.
|
void |
detach()
Detach this handler from the text component.
|
public static UndoRedoHandler attach(JTextComponent textComponent)
detach(), to remove the handler
from the given component if necessary.textComponent - The text componentpublic void detach()
Copyright © 2022. All rights reserved.