Merging edits

  • Thread starter =?ISO-8859-1?Q?Daniel_Sj=F6blom?=
  • Start date
?

=?ISO-8859-1?Q?Daniel_Sj=F6blom?=

I'm using the Swing UndoManager to implement undo and redo capabilites
in a text component. It works fine, but there is one thing that really
annoys me. When replacing text, the edit is treated as two separate
edits (since AbstractDocument allows implementations to do so), a remove
followed by an insert. Is there some way to merge several edits into one
edit?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top