Article View: borland.public.jbuilder.java.swing
Article #7530Re: Jlist doesn't show all values
From: John McGrath TeamB
Date: Wed, 17 Jan 2001 08:30
Date: Wed, 17 Jan 2001 08:30
20 lines
1427 bytes
1427 bytes
On Tue, 16 Jan 2001 11:40:25 +0100, Inge wrote:
> The data is added to the list through the use of a thread
> and every element is added immediately to the listmodel.
> After adding an element I specifically call invalidate()
> an repaint(0), but sometimes elements get lost.
I suspect that your problem is that you are updating Swing from a
thread other than the event dispatch thread. If you perform those
updates using SwingUtilities.invokeLater(), it will probably fix the
paint problems.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14cf1b301a350763989ea8@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<9418he$j5d8@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,90ba39ff38bc5af7 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-17 00:34:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Jlist doesn't show all values Date: Wed, 17 Jan 2001 03:30:38 -0500 Organization: Another Netscape Collabra Server User Lines: 20 Message-ID: <MPG.14cf1b301a350763989ea8@forums.borland.com> References: <9418he$j5d8@bornews.inprise.com> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30