static A moveFrameUp(A c, final int y) { final Window w = getWindow(c); if (w != null) swing { w.setLocation(w.getX(), w.getY()-y); } ret c; }