Places this application window in a wait state. This makes the window unresponsive to user input, and displays an hour-glass cursor. The wait-state is terminated by a call to the {@link WaitLock#release()} method on the returned
WindowWaitLock
.
If the window is already in a waiting state when this call is made, this call has no effect on the window state. However, if multiple calls to startWait
are made the wait state will not be terminated until all corresponding wait locks have been released.
@return a WindowWaitLock
the release()
method of which is usedto terminate the wait state. The wait state will be terminated when all outstanding wait locks have been released.