static int moveToTopCenter_inset = 20; static A moveToTopCenter(A c) { Window w = getWindow(c); if (w != null) { centerFrame(w); w.setLocation(w.getX(), moveToTopCenter_inset); } ret c; }