🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Jlist doesn't show all values

#7523
From: Inge
Date: Tue, 16 Jan 2001 10:40
20 lines
1581 bytes
I've created myList which extends from JList. I ' ve defined a custum
listCellRenderer for it which extends a JLabel, but specific characteristics
like color, font, layout,etc. are added to it.

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.

When I drag an element to an incomplete list, this element is added and all
"lost" elements are suddenly visible as well.

Should I call another method instead of repaint(), or should I call it at a
different place, ... ?

If someone knows a quick solution, I'd be very gratefull,

Kind regards,

Inge
Technical Details
Message-ID: <9418he$j5d8@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,90ba39ff38bc5af7,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-16 02:44:01 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!not-for-mail
From: "Inge" <inge.luyckx@idp.be>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Jlist doesn't show all values
Date: Tue, 16 Jan 2001 11:40:25 +0100
Organization: Another Netscape Collabra Server User
Lines: 23
Message-ID: <9418he$j5d8@bornews.inprise.com>
NNTP-Posting-Host: D47B099A.kabel.telenet.be
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400