howto Processing GUI events until a thread exits

Printable View