static void setFrameLocation(final Window w, final int x, final int y) { if (w != null) swing { w.setLocation(x, y); } }