Update JavaRegression test to run inside the EDT

Hopefully this should solved the issue when the window get created
on Mac and the system doesn't want to provide it.

Change-Id: I19d5e48a492009ef4c901ef263588748bbfbb3c2
Merge topic 'java-regression-test' into master

44d2c23e Update JavaRegression test to run inside the EDT