static void moveFrameLeft(Window w, int amount) { if (w != null) w.setLocation(w.getLocation().x-amount, w.getLocation().y); } static void moveFrameLeft(Component c, int amount) { moveFrameLeft(getWindow(c), amount); }