🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JProgressBar???

#11802
From: Tor Iver Wilhelmsen
Date: Fri, 26 Mar 1999 00:00
14 lines
1177 bytes
"Frank Packenham" <frank@NeuroFlex.com> writes:

> I've looked at that piece and am now confused. do I call invokeLater on the
> second thread, or from the second thread.

From any thread that isn't the event dispatch thread. Test with
SwingUtilities.isEventDispatchThread() if there is a risk the method
will be invoked from a event-driven method (those of AWT listeners
etc.)

> If the latter, then what am I
> calling invokeLater on??

A Runnable object which has what you want to do in its run().
Technical Details
Message-ID: <u1zichay2.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7asa65$s6f3@forums.borland.com> <36D1B06A.32258010@netrisk.com> <7asbfp$s6c8@forums.borland.com> <7atidp$1785@forums.borland.com> <36D28D4D.4F81E9D2@teamworks.de> <MPG.116405e456424a169899a8@forums.borland.com> <7der3h$rt89@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c7a418e2d93c1eb4
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: JProgressBar???
Date: 1999/03/26
Message-ID: <u1zichay2.fsf@sds.no>
X-Deja-AN: 459278415
Sender: towi@SDSA1761
References: <7asa65$s6f3@forums.borland.com> <36D1B06A.32258010@netrisk.com> <7asbfp$s6c8@forums.borland.com> <7atidp$1785@forums.borland.com> <36D28D4D.4F81E9D2@teamworks.de> <MPG.116405e456424a169899a8@forums.borland.com> <7der3h$rt89@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing