JRE-146 setLocation/getLocation for dialog windows are inconsistent on ubuntu 16.04

backported additional jdk9 fix: 8165619
2 files changed