🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Progress indicator

#12000
From: Dieter Mach
Date: Fri, 05 Mar 1999 00:00
33 lines
1521 bytes
Hi,

we also had these problems. Using a separate thread didn't help, also the
Swingworker class found somewhere at the java.sun.com didn't do the job.
We found the following workaround:

  MyProgressBar.paintImmediately(MyProgressBar.getBounds());

hope this helps.

Dieter


Matt Krevs schrieb in Nachricht <7bl39a$3k31@forums.borland.com>...
>Check out this link. It discusses how to place you non GUI code in another
>thread
>
>http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html
>
>Frank Packenham wrote in message <7bkorr$35b6@forums.borland.com>...
>>I've got a loop which reads data from an external source, and can take a
>>long time to execute. So I want to display a progress indicator. but the
>>modless dialog I use for this isn't repainting - seems like the loop is
>>hogging the processor. How can I get the progress indicator updated??
>>-------
>>Frank Packenham
>>Senior Analyst/Developer
>>NeuroFlex Pty Ltd.
>>
>>
>>
>
>
Technical Details
Message-ID: <7bo2se$69b4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7bkorr$35b6@forums.borland.com> <7bl39a$3k31@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f56c076ac136f748
X-Google-Attributes: gid111d45,public
From: "Dieter Mach" <mach@klein-und-partner.de>
Subject: Re: Progress indicator
Date: 1999/03/05
Message-ID: <7bo2se$69b4@forums.borland.com>
X-Deja-AN: 451476923
References: <7bkorr$35b6@forums.borland.com> <7bl39a$3k31@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing