use SwingUtilities instead of a bunch of getParents
Merge branch 'fix-getparent' into dev-gradle