试题详情
- 多项选择题 import java.awt.*; public class X extends Frame { public static void main (String args) { X x = new X(); x.pack(); x.setVisible(true); } public X() { setLayout (new BordrLayout()); Panel p = new Panel (); add(p, BorderLayout.NORTH); Button b = new Button (“North”); p.add(b): Button b = new Button (“South”); add(b1, BorderLayout.SOUTH): } } Which two statements are true?()
A、 The buttons labeled “North” and “South” will have the same width.
B、 The buttons labeled “North” and “South” will have the same height.
C、 The height of the button labeled “North” can very if the Frame is resized.
D、 The height of the button labeled “South” can very if the Frame is resized.
E、 The width of the button labeled “North” is constant even if the Frame is resized.
F、 The width of the button labeled “South” is constant even if the Frame is resized.
- B,E
关注下方微信公众号,在线模考后查看
热门试题
- 下面的代码读取并打印文本文件,请修改正确
- 现有: &ens
- 线程安全的map在JDK 1.5及其更高
- 下列叙述正确的是哪项?()
- A JSP pag
- Which statement
- Java中所有类的父类是()。
- Your IT d
- 内部类与外部类的使用有何不同?
- 获取File实例所封装文件长度的方法是?
- Which two̳
- A developer&en
- A Company.com&
- 求数列2,4,8,16,32,…前若干项
- 编写JButton组件的事件处理器类时,
- 1.public class GC{
- 编写一个Java程序在屏幕上输出1!+2
- Which statemen
- switch (i)&ens
- 编写Applet程序,用paint()方