格林模拟试题二(上)(5)
question 13)
how do you indicate where a component will be positioned using flowlayout?
1) north, south,east,west
3) pass a x/y percentage parameter to the add method
question 14)
how do you change the current layout manager for a container
1) use the setlayout method
3) use the setlayoutmanager method
question 15)
which of the following are fields of the gridbagconstraints class?
1) ipadx
3) insets
||| question 16)
what most closely matches the appearance when this code runs?
import java.awt.*;public static void main(string argv){
}
complay(){
p.setbackground(color.pink);
p.add(new button("two"));
add("south",p);
setsize(300,300);
}
1) the buttons will run from left to right along the bottom of the frame
3) the buttons will not be displayed
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>