Title: suspend the awt thread
Hi,
I want to suspend the awt thread but still get painting done. Is this possible?
assume this piece of code:
actionPerformed(ActionEvent e)
{
Runnable myRunnable = new MyRunnable();
Thread workerThread = new Thread( myRunnable );
workerThread.start();
Title: suspend the awt thread
Hey,
From what I understood what you wish to achieve is that the UI
should continue to repaint but the user should not be able to interact with it
while you complete your task?
You can -
a) Show a modal dialog that says "Please Wait" or shows a
progress bar
Title: suspend the awt thread
Sorry - sent it before completing my sentence - I meant to say
a) seems the best way . :-)
- Original Message -
From:
Sachin
Hejip
To: Deblauwe, Wim ; [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 12:14
PM
Subject: Re: suspend the
Title: suspend the awt thread
Yes,
a) is what I want to do. Now the progressbar is started in the MyRunnable()
class. Are you saying that I should start it within the actionPerformed()
method?
-Original Message-From: Sachin Hejip
[mailto:[EMAIL PROTECTED]Sent: woensdag 11 juni