c1.setMinimumSize(new Dimension(10, 10));
c1.setPreferredSize(new Dimension(20, 20));
c1.setMaximumSize(new Dimension(30, 30));
c.add(c1);
OverlayLayout l = new OverlayLayout(c);
l.layoutContainer(c);
h.check(c1.getX(), 35);
h.check(c1.getY(), 35);
h.check(c1.getWidth(), 30);
h.check(c1.getHeight(), 30);
}