在BorderLayout中,添加到NORTH区的两个按钮将并排显示。
第1题:
在“收藏夹”窗口内单击“添加”按钮,或单击“收藏”菜单中的“添加到收藏夹”命令,在弹出的对话框中“名称”文本框内输入要收藏的网页名称,在 “创建到”列表框中选择要收藏文件夹,然后单击“确定”按钮,将当前浏览的网页添加到收藏夹内。( )
A.正确
B.错误
第2题:
下列说法中错误的一项是______。
A.采用BorderLayout布局管理,添加构件的时候需要在add()方法中说明添加到哪一个区域
B.采用BorderLayout布局管理时,每一个区域只能且必须放一个构件
C.采用BorderLayout布局管理时,不一定要所有的区域都有构件
D.采用BorderLayout布局管理,容器大小发生变化时,构件之间的相对位置不变,构件大小改变
第3题:
A.North或South
B.East或West
C.Center
D.North,South或Center
E.任何区域
第4题:
(1)建立项目文件,名为“xm”。
(2)将数据库“订货管理”添加到新建立的项目“xm”当中。
(3)把表单“bdl”添加到项目“xm”中。
(4)修改表单“bdl”,将其中的命令按钮删除。
第5题:
使用______位置参数,能够使一个部件位于容器的右边。
A.BorderLayout.RIGHT
B.BorderLayout.WEST
C.BonierLayout.EAST
D.BorderLayout.NORTH
第6题:
importjava.awt.*;publicclassXextendsFrame{publicstaticvoidmain(Stringargs){Xx=newX();x.pack();x.setVisible(true);}publicX(){setLayout(newBordrLayout());Panelp=newPanel();add(p,BorderLayout.NORTH);Buttonb=newButton(North”);p.add(b):Buttonb=newButton(South”);add(b1,BorderLayout.SOUTH):}}Whichtwostatementsaretrue?()
A.Thebuttonslabeled“North”and“South”willhavethesamewidth.
B.Thebuttonslabeled“North”and“South”willhavethesameheight.
C.Theheightofthebuttonlabeled“North”canveryiftheFrameisresized.
D.Theheightofthebuttonlabeled“South”canveryiftheFrameisresized.
E.Thewidthofthebuttonlabeled“North”isconstanteveniftheFrameisresized.
F.Thewidthofthebuttonlabeled“South”isconstanteveniftheFrameisresized.
第7题:
下列程序在Frame中设定BorderLayout布局管理器,选择正确的语句填入程序的横线处。 import java.awt.*; public class ex43 extends Frame { public static void main(String[] args) { ex43 bj = new ex43("BorderLayout"); ______ obj.add("North", new Button("North")); obj.add("South", new Button("Sourth")); obj.add("East", new Button ("East")); obj.add("West", new Button ("West")); obj. add ("Center", new Button ( "Center" ) ); obj.pack(); obj. setVisible (true); } public ex43(String str) { super (str); } }
A.obj.setLayout(new BorderLayout());
B.setLayout(new Borderkayout());
C.setLayout(BorderLayout());
D.obj.setLayout(BorderLayout());
第8题:
浏览网页的过程中,用户可以将感兴趣的网址添加到收藏夹中,供以后重复浏览,主要操作方法有( )。
A.将地址栏中的网页图标拖放放到工具栏中 “收藏”按钮处
B.单击工具栏中的“收藏按钮”,在浏览区左侧出现“收藏夹”窗口,用户将地址栏中的网页图标拖放到“收藏夹”窗口内
C.在“收藏夹”窗口内单击“添加”按钮,或单击“收藏”菜单中的“添加到收藏夹”命令,在弹出的对话框中“名称”文本框内输入要收藏的网页名称,在“创建到”列表框中选择要收藏文件夹,然后单击“确定”按钮
D.在IE地址栏内单击鼠标右键,在右键快捷菜单中选择“收藏”
第9题:
建立项目文件,名为my。
(2)将数据库nba添加到新建立的项目当中。
(3)修改表单my,将其中的命令按钮删除。
(4)把表单my添加到项目my中。
第10题: