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

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

Luz5年前 (2021-05-10)题库1053
What best describes the appearance of an application with the following code? @[D](2)
```Java
public class FlowAp extends Frame{
public static void main(String argv[]){
FlowAp fa=new FlowAp();
fa.setLayout(new GridLayout());
fa.add(new Button("One"));
fa.add(new Button("Two"));
fa.add(new Button("Three"));
fa.add(new Button("Four"));
fa.setSize(800,600);
fa.setVisible(true);
}
}
```

A. A window with buttons marked One to Four placed on each edge.
B. A window with buttons marked One to Four placed from the top to bottom.
C. A window with one large button marked Four in the center.
D. A window with buttons marked One to Four occupy a quarter of the window evenly.





A.A window with buttons marked One to Four placed on each edge.
B.A window with buttons marked One to Four placed from the top to bottom.
C.A window with one large button marked Four in the center.
D.A window with buttons marked One to Four occupy a quarter of the window evenly.


答案:D