JAVA程序填空题,
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/07/27 21:42:37
JAVA程序填空题,
![](http://img.wesiedu.com/upload/a/4c/a4c56e77c644c0704871821e01e87aa5.jpg)
![](http://img.wesiedu.com/upload/b/a8/ba8aa2f3f6d2bf70f9bba5cf0d5267b1.jpg)
![](http://img.wesiedu.com/upload/e/a0/ea0762f99512d06a7bf10ade990d77df.jpg)
![](http://img.wesiedu.com/upload/4/29/429510554db423abc4b6f445af084331.jpg)
![](http://img.wesiedu.com/upload/a/4c/a4c56e77c644c0704871821e01e87aa5.jpg)
![](http://img.wesiedu.com/upload/b/a8/ba8aa2f3f6d2bf70f9bba5cf0d5267b1.jpg)
![](http://img.wesiedu.com/upload/e/a0/ea0762f99512d06a7bf10ade990d77df.jpg)
![](http://img.wesiedu.com/upload/4/29/429510554db423abc4b6f445af084331.jpg)
![JAVA程序填空题,](/uploads/image/z/18755850-66-0.jpg?t=JAVA%E7%A8%8B%E5%BA%8F%E5%A1%AB%E7%A9%BA%E9%A2%98%2C)
1 public class CircleAreaCaculate implements ActionListener
2 contentPane.setLayout(new BorderLayout()) ; //这句废话,因为默认就是BorderLayout
3 JPanel p = new JPanel(new GridLayout(2,2));
4 areaTf.setEditable(false);
5 caculateBt.addActionListener(this);
6 frame.setSize(300,150);
7 Double.parseDouble(radioTf.getText());
8 double area = Math.PI * radio * radio;
9 areaTf.setText(""+area);
10 NumberFormatException xe
2 contentPane.setLayout(new BorderLayout()) ; //这句废话,因为默认就是BorderLayout
3 JPanel p = new JPanel(new GridLayout(2,2));
4 areaTf.setEditable(false);
5 caculateBt.addActionListener(this);
6 frame.setSize(300,150);
7 Double.parseDouble(radioTf.getText());
8 double area = Math.PI * radio * radio;
9 areaTf.setText(""+area);
10 NumberFormatException xe