🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ProgressBar

#12844
From: Tapio Holopainen
Date: Thu, 05 Nov 1998 00:00
39 lines
1747 bytes
When using JApplet or JFrame, I have no problems using progressbar:
setValue-method updates progressbar immediately...

One way to update progressbar is to add following line after setValue
call:

_progressbar.update(_progressbar.getGraphics());

Hope this helps.

- Tapio

Ragnar Valdimarsson wrote:
> 
> 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: <3641B61D.4991269B@sysline.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3638C333.86BBE5A2@qds.com> <363EB256.7203FB53@decode.is>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,47147ddd53378d17
X-Google-Attributes: gid111d45,public
From: Tapio Holopainen <tapio.holopainen@sysline.com>
Subject: Re: ProgressBar
Date: 1998/11/05
Message-ID: <3641B61D.4991269B@sysline.com>
X-Deja-AN: 408668343
Content-Transfer-Encoding: 7bit
References: <3638C333.86BBE5A2@qds.com> <363EB256.7203FB53@decode.is>
To: Ragnar Valdimarsson <ragnar@decode.is>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Sysline Oy
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing