static void setLocation(Component c, int x, int y) { if (c != null) swing { c.setLocation(x, y); } }