Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undoable typing



Unfortunately you have to create a strategy for undoing/redoing series of edits at the time. For example you can cast the edits to the implementing class and check to see if they are affecting a continous section of the document. If they are you process them at once.

Piotr Rychlik wrote:
Hi,

I have some problems with implementing undoable text typing actions. Typing in JTextComponent generates separate UndoableEdit for every entered character. Is there any subclass of CompoundEdit or UndoManager that would intelligently agregate undoable typing edits?

I know that it is a general question about Java.

Piotr Rychlik
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.


--
Dan Caprioara

<oXygen/> XML Editor - http://www.oxygenxml.com/
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Undoable typing (From: Piotr Rychlik <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.