RE: suspend the awt thread

2003-06-12 Thread Deblauwe, Wim
Title: suspend the awt thread true, but what if it is not possible to do all operations in the Runnable? -Original Message-From: Sachin Hejip [mailto:[EMAIL PROTECTED]Sent: woensdag 11 juni 2003 9:50To: Deblauwe, WimSubject: Re: suspend the awt thread Do all your

Re: suspend the awt thread

2003-06-11 Thread Sachin Hejip
Title: suspend the awt thread Sorry, since the dialog is modal you need to show it in the run of the runnable (again in the SwingUtilities and not in the actionPerformed).   public void actionPerformed(ActionEvent ae) {     Runnable runnable = new Runnable() {         public void run

Re: suspend the awt thread

2003-06-11 Thread Sachin Hejip
Title: suspend the awt thread Yes, create the dialog and start the progress bar in the action peformed and then update it with calls to SwingUtilities.invokeLater in your MyRunnable class. Make sure you close the dialog in a finally block.   public void actionPerformed(ActionEvent ae

RE: suspend the awt thread

2003-06-10 Thread Deblauwe, Wim
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

Re: suspend the awt thread

2003-06-10 Thread Sachin Hejip
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

Re: suspend the awt thread

2003-06-10 Thread Sachin Hejip
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 pr

suspend the awt thread

2003-06-10 Thread Deblauwe, Wim
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