//????????????
import java.awt.*;
import javax.swing.*;
public class Jiemian2 extends JFrame{
//???????
JButton[]    an    =    {null??null??null??null??null??null??null??null};
public static void main(String[] args){
//???б?????????
Jiemian2 jiemian    =    new Jiemian2();
}
public Jiemian2(){
//???????
an[0]    =    new JButton("??÷");
an[1]    =    new JButton("????");
an[2]    =    new JButton("???");
an[3]    =    new JButton("????");
an[4]    =    new JButton("?????");
an[5]    =    new JButton("????");
an[6]    =    new JButton("????");
an[7]    =    new JButton("?????");
//??????????????????????????
//????java???????粼???????????????????????????????????
//?????????????????LEFT??RIGHT?????ж???
//this.setLayout(new FlowLayout());
this.setLayout(new FlowLayout(FlowLayout.LEFT));
//?????
this.add(an[0]);
this.add(an[1]);
this.add(an[2]);
this.add(an[3]);
this.add(an[4]);
this.add(an[5]);
this.add(an[6]);
this.add(an[7]);
//??????????
this.setTitle("???????Flowlayout");
//??????????
this.setSize(300??300);
//??????????????????λ??
this.setLocation(100??100);
//?????????С
this.setResizable(false);
//?????????????
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//???????
this.setVisible(true);
}
}