注意:此页面搜索的是所有试题
题目内容
(郑州工程技术学院—Java程序设计)
Applet的布局设置默认是FlowLayout,下列中哪项代码可以改变Applet的布局方式?
(A)setLayoutManager(newGridLayout());
(B)setLayout(newGridLayout(2,2));
(C)setGridLayout(2,2);
(D)setBorderLayout();
(A)setLayoutManager(newGridLayout());
(B)setLayout(newGridLayout(2,2));
(C)setGridLayout(2,2);
(D)setBorderLayout();
参考答案