Insets 对象是容器边界的表示形式;
它指定容器必须在其各个边缘留出的空间;
这个空间可以是边界、空白空间或标题。这是API上的内容;以前也用过这个类,但不经常用:
JButoon button = new JButton("按钮");  
Insets insets = new Insets(2,4,2,4);  //设置组件间的间距(上 右 下 左)
button.setMargin(insets); 至于是什么设计模式,看源代码也没看出了所以然来;