import javax.swing.*;
class Win extends JFrame
{
    Box baseBox, boxV1, boxV2, boxV3; 
    public Win()
    {
        setTitle("Ӧýˮ");
        boxV1 = Box.createVerticalBox();
        for (int i = 1; i <= 2; i++)
        {
    boxV1.add(new JButton("ť" + i));
        }
   boxV1.add(Box.createVerticalGlue());
        boxV2 = Box.createVerticalBox();
        boxV2.add(Box.createVerticalGlue());
        for (int i = 1; i <= 3; i++)
        {
            boxV2.add(new JButton("ť" + i));
        }
        boxV3 = Box.createVerticalBox();
        for (int i = 1; i <= 4; i++)
        {
            boxV3.add(new JButton("ť" + i));
            if (i == 3)
            {
            	boxV3.add(Box.createVerticalGlue());
            }
        }
        baseBox = Box.createHorizontalBox();
        baseBox.add(boxV1);
        baseBox.add(boxV2);
        baseBox.add(boxV3);
        add(baseBox);
        setBounds(200, 200, 200, 110);
        validate();
        setVisible(true);
    }
}
class BoxLayout_test3
{
public static void main(String args[])
{
Win ta = new Win();
    }
}
