🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ProgressBar

#12813
From: Ragnar Valdimarsson
Date: Tue, 03 Nov 1998 00:00
25 lines
1302 bytes
I had the same problem with the progress bar.
The only way for me to make it display anything at all
was to move the code (including the setValue of the
progress bar) into a separate thread.
So, just create a thread and move the code to the run
method there.

I ususally create an inner class that extends thread and
then have a method that creates an instance of the inner thread
class and calls start().

Ragnar

Robert D. Morse wrote:
> 
> I'm trying to use a progressBar in my application.  Here's what I've
> done:
> 
> 1. I drop a progressBar using the UI designer
> 2. I set the minimum to zero, and the maximum to 100
> 3. I have a loop that issues setValue().
> 
> No exceptions are thrown, but the bar doesn't do anything.  Suggestions?
> 
> -robert.
Technical Details
Message-ID: <363EB256.7203FB53@decode.is>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3638C333.86BBE5A2@qds.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,47147ddd53378d17
X-Google-Attributes: gid111d45,public
From: Ragnar Valdimarsson <ragnar@decode.is>
Subject: Re: ProgressBar
Date: 1998/11/03
Message-ID: <363EB256.7203FB53@decode.is>
X-Deja-AN: 407851263
Content-Transfer-Encoding: 7bit
References: <3638C333.86BBE5A2@qds.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing