🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to force a jList to paint

#7545
From: Richard Kessler
Date: Wed, 17 Jan 2001 18:49
27 lines
1689 bytes
I answered my own question, but thought I would put it out here for any 
interested party...

I put the database processing in a separate class that extended thread. This 
allowed the JList to update itself in the main thread.

In article <t693ggodpg05a@corp.supernews.com>, richardkessler@matteicos.com 
says...
>
>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: <t6bqaca9feltab@corp.supernews.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <t693ggodpg05a@corp.supernews.com>

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