Article View: borland.public.jbuilder.java.swing
Article #8230Forcing the update of a list's view
From: Thomas Benedek
Date: Wed, 04 Oct 2000 00:00
Date: Wed, 04 Oct 2000 00:00
23 lines
1477 bytes
1477 bytes
Hi, I created a normal browser that is built up of a tree to display the directories and a list that shows all elements in the currently selected directory. I have the problem that when I remove an element of the list's DefaultListModel with "remove(object o)", the view is not updated immediately. Only after selecting another directory and going back to the one where I removed the element the view is up to date again. I suppose that the model of a list should inform the view that a change happened (but that is not the fact in this case) Is there any possibility to force the list to update its view with the current model? (I would prefer this instead of adding the hole bunch of elements to the list again after deleting items because of time issues) Thank you Thomas
Technical Details
Message-ID:
<39DB5822.9DD79DB2@scr.siemens.com>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,6c2f6b8f3b9d541d,start X-Google-Attributes: gid111d45,public From: Thomas Benedek <benedek@scr.siemens.com> Subject: Forcing the update of a list's view Date: 2000/10/04 Message-ID: <39DB5822.9DD79DB2@scr.siemens.com> X-Deja-AN: 677511542 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 970676676 129.73.2.46 (Wed, 04 Oct 2000 16:24:36 GMT) Organization: Verio MIME-Version: 1.0 NNTP-Posting-Date: Wed, 04 Oct 2000 16:24:36 GMT Newsgroups: borland.public.jbuilder.java.swing