input1 = new TextField(10);
input2 = new TextField(10);
input3 = new TextField(10);
show = new TextArea(6, 43);
Font f=new Font("宋体",Font.BOLD,15);
Label l1=new Label("输入学号");
l1.setFont(f);
l1.setForeground(Color.blue);
p1.add(l1);
p1.add(new Label("学号:"));
p1.add(input1);
box1 = Box.createVerticalBox();
box1.add(Box.createVerticalStrut(8));
box1.add(new Label("数学:"));
box1.add(Box.createVerticalStrut(8));
box1.add(new Label("英语:"));
box2 = Box.createVerticalBox();
box2.add(input2);
box2.add(Box.createVerticalStrut(8));
box2.add(input3);
box3 = Box.createHorizontalBox();
box3.add(box1);
box3.add(Box.createHorizontalStrut(1));
box3.add(box2);
Label l2=new Label("输入成绩");
l2.setFont(f);
l2.setForeground(Color.blue);
p2.add(l2);
p2.add(box3);
xiug.addActionListener(this);
show.setEditable(false);
bg = new ImageIcon("cru.jpg");
JLabel label = new JLabel(bg);
label.setBounds(0, 0, bg.getIconWidth(), bg.getIconHeight());
imagePanel = (JPanel) frame.getContentPane();
imagePanel.setOpaque(false);
imagePanel.setLayout(new FlowLayout());
imagePanel.add(p1);
imagePanel.add(p2);
11