}
};
setContentPane(panel);
// This callback methods will be called for every layout cycle and let you make correction before and after the calculations.
migLayout.addLayoutCallback(new LayoutCallback() {
// This is the size change part
public BoundSize[] getSize(ComponentWrapper comp)
{
if (comp.getComponent() instanceof JButton) {