$ 0 0 Just call the wait method from the modal form itself! public void run() { super(); element.wait(true); }