void (Object component, String key, int x, int y, int width, int height) { Rectangle rectangle = getRectangle(component, key); if (rectangle != null) { rectangle.x = x; rectangle.y = y; rectangle.width = width; rectangle.height = height; } else { set(component, key, new Rectangle(x, y, width, height)); //java //midp set(component, key, new int[] { width, height, x, y }); } }