Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: problems with editable JList Date: Mon, 17 Feb 2014 12:19:56 -0800 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 17 Feb 2014 20:19:57 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="9358cda03e1e0dfd3c4b757daa608707"; logging-data="8641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18amLUSpjpAtSqlaQwBFno1djKKQ71Y7Yg=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: Cancel-Lock: sha1:sNyQK5DeuXT3vxWNQoraJEQUuhg= Xref: csiph.com comp.lang.java.programmer:27539 On 2/17/2014 12:02 PM, blmblm@myrealbox.com wrote: > markspace wrote: >> >> I think your event listeners are tripping you up. They're probably > > I'd have said not -- based on output of the even-more-debug-prints > version I'm reasonably confident that I'm not getting that kind of > recursion/loop, and anyway I only modify the selection in code to > process add/remove events, rather than in .... I didn't read your code carefully to find the bug -- there was quite a lot of it. Rather I just focused on your idea that there might be a bug in JList or DefaultModelListener. So I purposely started over from scratch, since that should duplicate the bug if there was one. When it worked, I basically stopped there and posted the code I had. No sense in belaboring something that's working. Anyway, glad you got yourself straightened out. Good luck.