下列Applet既可以作为Applet运行,也可以作为Application运行。请选择正确的语句填入横线处。
import java.applet.*;
import java.awt.*;
import j ava. awt. event. *;
public class ex35 extends Applet
Label 1;
public void init()
1 = new Label();
1. setText ("这是Applet ! ");
add(1);
public static void main(String[] args)
ex35 e = new ex35();
Frame frm = new Frame("ex35");
frm. add (e);
frm. addWindowListener (new WindowAdapter ()
public void windowClosing (WindowEvent we)
System.exit (1);
);
e.1. setText ("这是Application! ");
frm.setSize(100, 100);
frm. setVisible (true);
A. e.paint(); B. 不填 C. e.repaint(); D. e.init();