static void moveFrameTo(int x, int y, Window w) { if (w != null) w.setLocation(x, y); } static void moveFrameTo(int x, int y, int w, int h, Window w) { if (w != null) w.setBounds(x, y, w, h); }