private FocusPanel newRedFocusPanel(int i) { FocusPanel panel = new FocusPanel(); panel.getElement().getStyle().setBackgroundColor("red"); String id = "box" + i; panel.ensureDebugId(id); panel.add(new Label(id)); panel.setPixelSize(100, 100); return panel; }