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