🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JProgressBar - update problem

#12548
From: Dieter Mach
Date: Tue, 22 Dec 1998 00:00
18 lines
1256 bytes
Hi to everyone,

in my Application I have a Window (JFrame) and something like a status bar,
containing a JProgressBar and some JButtons. When initializing a JPanel to
be displayed in the Window, I want the JProgressBar to show the progress of
this lengthy process. Also, one of the JButtons should show some text
explaining the current state. I tried to increase the JProgressBar value
several times from within the jbInit method of my JPanel, but it did not
show the changes before the jbInit method finished. I also tried the way
shown in the swingset demo - progress panel, but this also did not work as
expected. Using the SwingUtilities.invokeLater method also didn't help.

Does anyone know what I have to do to get the Progress bar updated
immediately?

Thanks

Dieter
Technical Details
Message-ID: <75nj00$9tg11@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,4df92e32900e90a1,start
X-Google-Attributes: gid111d45,public
From: "Dieter Mach" <mach@klein-und-partner.de>
Subject: JProgressBar - update problem
Date: 1998/12/22
Message-ID: <75nj00$9tg11@forums.borland.com>
X-Deja-AN: 424764805
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.swing