🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to force a jList to paint

#7526
From: Richard Kessler
Date: Tue, 16 Jan 2001 18:08
15 lines
1295 bytes
Can someone tell me how to force a jList to paint. I am loading messages from a 
processing loop into the box to give a status of where the processing is, but 
it does not paint until processing is finished (not much good that way!). I 
would like to be able to force a paint after each addElement and also make the 
jList scroll to the last element so that the messages can be viewed as things 
go along.

In the VB world, a DoEvents would do the trick, but I do not know the 
couterpart in JAVA.

Any help would be greatly appreciated...

Thanks in advance,

Richard
Technical Details
Message-ID: <t693ggodpg05a@corp.supernews.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7a556d1ba7fd08be,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-16 10:10:02 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: richardkessler@matteicos.com (Richard Kessler)
Newsgroups: borland.public.jbuilder.java.swing
Subject: How to force a jList to paint
Date: Tue, 16 Jan 2001 18:08:16 -0000
Organization: The Mattei Companies
Message-ID: <t693ggodpg05a@corp.supernews.com>
X-Newsreader: WinVN 0.99.9 (Released Version) (x86 32bit)
MIME-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Complaints-To: newsabuse@supernews.com
Lines: 17