class ButtonDemo2 extends JFrame//输出结果窗口
{
public static final int WIDTH=1000;
public static final int HEIGHT=680;
public String rlt=””;
JFrame overGUI;
ButtonDemo2(String jg2)
{
overGUI=new JFrame(“测试系统”);
overGUI.setSize(WIDTH,HEIGHT);
overGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Toolkit kit=Toolkit.getDefaultToolkit();
Dimension screenSize=kit.getScreenSize();
int width=screenSize.width;
int height=screenSize.height;
int x=(width-WIDTH)/2;
int y=(height-HEIGHT)/2;
overGUI.setLocation(x,y);
Panel p=new Panel();
Container conPane=getContentPane();
overGUI.add(conPane);
conPane.setBackground(Color.WHITE);
conPane.setLayout(new FlowLayout());//采用FlowLayout布局
this.setLayout(nu