Re: Do I need Threads for this?
- From: "DRS.Usenet@xxxxxxxxxxxxxxxx" <DRS.Usenet@xxxxxxxxxxxxxxxx>
- Date: 5 Dec 2006 07:28:10 -0800
nospam@xxxxxxxxxxxxxxx wrote:
I've got a method that copies files from one place to another. Each time the
file copies over it takes roughly 10 seconds per file (depending on how
large the file is).
In the meantime, I need my JPanel label to update with the current number of
files copied over so far.
Yes, you need threads, but it's not that hard. You make a class that
implements Runnable or extends Thread. Then you can do all ten files
at once, if you choose to!
--Dale--
.
- Follow-Ups:
- Re: Do I need Threads for this?
- From: nospam
- Re: Do I need Threads for this?
- From: Oliver Wong
- Re: Do I need Threads for this?
- References:
- Do I need Threads for this?
- From: nospam
- Do I need Threads for this?
- Prev by Date: Re: Is there a free software to show Java classes' relationship?
- Next by Date: Re: how can i store files complete path in an array with filter say *.log
- Previous by thread: Do I need Threads for this?
- Next by thread: Re: Do I need Threads for this?
- Index(es):