|
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() {
startProgressDialog(); // remember to do this in the swing
thread
try {// do some long operation and update progress dialog in the Swing thread when appropriate }
finally {
closeProgressDialog(); // remember to do this in the swing
thread
}
}
new Thread(runnable).start();
}
|
Title: suspend the awt thread
- suspend the awt thread Deblauwe, Wim
- Re: suspend the awt thread Sachin Hejip
- Re: suspend the awt thread Sachin Hejip
- RE: suspend the awt thread Deblauwe, Wim
- Re: suspend the awt thread Sachin Hejip
- RE: suspend the awt thread Sachin Hejip
- RE: suspend the awt thread Deblauwe, Wim
- Decent browser component? Frank D. Greco
- Re: Decent browser component? Sachin Hejip
- Re: Decent browser component? Frank D. Greco
