它们互不干扰的,JFrame a, Component b,c;所以要让它们都有同样的layout,就a.setLayout(layout);b.setLayout(layout);c.setLayout(layout);
他们互相独立,需要各自设置自己的布局方式。