当applet程序中的init()方法为下列代码时,运行后用户界面会出现什么样的情况。 public void init () {setLayout(new BorderLayout());add("North", new TextField(10));add("Center", new Button("help")); } 选择正确答案______。
单选题
当applet程序中的init()方法为下列代码时,运行后用户界面会出现什么样的情况。 public void init () {setLayout(new BorderLayout());add("North", new TextField(10));add("Center", new Button("help")); } 选择正确答案______。
A. 按钮将会出现在applet的正中间,且尺寸为正好能够包容“help”的大小
B. 文本框将会出现在applet的顶上,且有10个字符的宽度
C. 文本框将会出现在applet的顶上,从最左边一直延伸到最右边;按钮将会出现在 applet的正中央,覆盖除文本框外的所有空间