Article View: borland.public.jbuilder.java.swing
Article #11975undo/redo exception
From: kerbel
Date: Tue, 23 Mar 1999 00:00
Date: Tue, 23 Mar 1999 00:00
20 lines
1254 bytes
1254 bytes
I have a critical problem with the undo/redo support in my application: It works fine for test that is inserted manually (by the user), however, it throws an exception when the user attempts to undo a change to the document that was made programmatically, i.e. when the program performs a find/replace operation, if the user attempts to undo this, it throws an arrayIndexOutOfBoundsException as it hasn't accounted for the changes. I have tried to use getDocument().remove() and getDocument.insertString() but these are not doing the job. Please can someone tell me how to account for this problem. Many thanks in advance Uri Kerbel -- uri@kalbi.demon.co.uk www.kalbi.demon.co.uk --
Technical Details
Message-ID:
<36f7aee7.26143848@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2d6a09f61b50fe96,start X-Google-Attributes: gid111d45,public From: kerbel@kalbi.demon.co.uk Subject: undo/redo exception Date: 1999/03/23 Message-ID: <36f7aee7.26143848@news.demon.co.uk> X-Deja-AN: 457994809 X-NNTP-Posting-Host: kalbi.demon.co.uk:158.152.128.133 X-Trace: news.demon.co.uk 922201902 nnrp-04:4466 NO-IDENT kalbi.demon.co.uk:158.152.128.133 Reply-To: kerbel@kalbi.demon.co.uk Newsgroups: borland.public.jbuilder.java.swing X-Complaints-To: abuse@demon.net