void (Container container) { super.layoutContainer(container); for (Component component : container.getComponents()) { // align inner components Rectangle b = component.getBounds(); Insets insets = container.getInsets(); component.setBounds(b.x, b.y, b.width, container.getSize().height - insets.top - insets.bottom); } }