网友您好, 请在下方输入框内输入要搜索的题目:
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.
参考答案