Make the JDialog modal so that execution of its caller waits until it returns.