菜鸟问题:请问下面的文件它的文件名是什么(****.java)啊?
import java.awt.*;import java.awt.event.*;
import java.applet.*;
public class AppApplet extends Applet {
public static void main(String args[]) {
Frame frame=new Frame();
AppApplet app=new AppApplet();
app.init();
frame.add(app);
frame.setSize(400,100);
frame.show();
}
TextField tf=new TextField(10);
Button b=new Button("求该数的平方“);
Lable b=new Lable("用于显示结果的标记”);
public void init() {
setLayout(new FlowLayout() );
add(tf);
add(b);
add(l);
b.addActionListener(new BActionAdapter() );
}
class BActionAdapter implements ActionListener {
pubic void actionPerformed(ActionEvent e ) {
String s=tf.getText();
double d=Double.parseDouble(s);
double sq=d*d*d;
l.setText( d+"的立方是: “+sq);
}
}
}
顺便帮我看下有什么问题,反正照着书写的但编译不出来