0

I have a class that implements the 'Runnable' interface and has a thread running in it. But as soon as the window is minimised, the thread stops to run, and restarts on maximising the window, from the state which it had before minimising. How should i ensure continuous running of a thread even if the window is minimsed?

4

1 に答える 1

4

GUIスレッドにも当てはまります。ワーカー スレッドを作成して、時間のかかるタスクを実行できます。

于 2013-02-08T07:38:21.417 に答える