🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: status dialog with cancel button

#8061
From: John McGrath TeamB
Date: Tue, 21 Nov 2000 00:00
19 lines
1022 bytes
On Tue, 21 Nov 2000 10:32:36 -0800, Zhining Zhang wrote:

> My program has a big loop which may take 5 or 10 minutes.
> I need a status dialog with a cancel button, so that user
> can know status and can cancel anytime. It works just like
> a download dialog.
> 
> How can I implement it? Thanks a lot!

You will need to run your code in a separate thread.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.148504bd96f06925989d57@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3A1ABFC4.EC817CA5@serena.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2d7fec89ddf09278
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: status dialog with cancel button
Date: 2000/11/21
Message-ID: <MPG.148504bd96f06925989d57@forums.borland.com>
X-Deja-AN: 696429000
References: <3A1ABFC4.EC817CA5@serena.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing