🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12050

DocumentListener and an endless loop issue

#12050
From: kerbel
Date: Sun, 28 Feb 1999 00:00
19 lines
1089 bytes
Hi

I'm currently developing a text editor with some automatic text
formatting. I need to be able to parse the text within my JTextPane
and then to reinsert it with the appropriate formatting. If I try to
take care of this within the DocumentListener, i.e. whenever the
document is updated, then it is illegal as it would result in an
endless loop.

What is the solution?

Any help would be greatly appreciated.

Regards
Uri Kerbel
--
uri@kalbi.demon.co.uk
www.kalbi.demon.co.uk (Java freebies)
--
Technical Details
Message-ID: <36d97413.23978209@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b074c53c9fd624c0,start
X-Google-Attributes: gid111d45,public
From: kerbel@kalbi.demon.co.uk
Subject: DocumentListener and an endless loop issue
Date: 1999/02/28
Message-ID: <36d97413.23978209@news.demon.co.uk>
X-Deja-AN: 449559575
X-NNTP-Posting-Host: kalbi.demon.co.uk:158.152.128.133
X-Trace: news.demon.co.uk 920221039 nnrp-03:15409 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