static void moveFrameAround(Window w) { if (w == null) ret; Rect r = randomRect(w.getWidth(), w.getHeight(), maxWindowBounds()); if (r != null) w.setLocation(r.x, r.y); }