static int moveToTopLeftCorner_inset = 20; static void moveToTopLeftCorner(Component c) { Window w = getWindow(c); if (w != null) w.setLocation(moveToTopLeftCorner_inset, moveToTopLeftCorner_inset); }