-->
当前位置:首页 > 题库

单选题:What best describes the appearance of an application with the fo

Luz5年前 (2021-05-10)题库679
What best describes the appearance of an application with the following code?
```Java
public class FlowAp extends Frame{
public static void main(String argv[]){
FlowAp fa=new FlowAp();
fa.setSize(400,300);
fa.setVisible(true);

}

FlowAp(){
add(new Button("One"));
add(new Button("Two"));
add(new Button("Three"));
add(new Button("Four"));
}
}
```
@[C](2)

A. A Frame with buttons marked One to Four placed on each edge.
B. A Frame with buttons marked One to four running from the top to bottom
C. A Frame with one large button marked Four in the Centre
D. An Error at run time indicating you have not set a LayoutManager





A.A Frame with buttons marked One to Four placed on each edge.
B.A Frame with buttons marked One to four running from the top to bottom
C.A Frame with one large button marked Four in the Centre
D.An Error at run time indicating you have not set a LayoutManager


答案:C