🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Easy(?) Repaint(?) problem with JProgressBar

#11507
From: Daniel R. J. Lind
Date: Fri, 14 May 1999 00:00
20 lines
1247 bytes
Hi,

I have a JButton linked to some code that has a series of steps.  After each
step I change the value of the JProgressBar.  Surprisingly enough, I am
wanting to show the progress through the steps to the user ; )

After you click the JButton it stays selcted until the series is finished.
During that time the JProgressBar isn't visually updated, but when the
series of steps is completed the JButton deselects and the JProgressBar
jumps to being at 100%.

I am using the setValue method of the JProgressBar and the event is the
standard JButton ActionEvent.  I have tried interspersing various repaint
type things to no avail.

I've got to be doing something simple wrong surely ...

Cheers,

Daniel
Technical Details
Message-ID: <7hfsol$10t15@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,9a882c5dcf41d7f3,start
X-Google-Attributes: gid111d45,public
From: "Daniel R. J. Lind" <daniel@synopsys.co.nz>
Subject: Easy(?) Repaint(?) problem with JProgressBar
Date: 1999/05/14
Message-ID: <7hfsol$10t15@forums.borland.com>
X-Deja-AN: 477632466
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing