高等教育 / JAVA语言
Applet的布局设置默认是FlowLayout,下列中哪项代码可以改变Applet的布局方式?
(A) setLayoutManager(new GridLayout());
(B) setLayout (new GridLayout(2,2));
(C) setGridLayout (2,2);
(D) setBorderLayout();
(A) setLayoutManager(new GridLayout());
(B) setLayout (new GridLayout(2,2));
(C) setGridLayout (2,2);
(D) setBorderLayout();
参考答案:
佳题速递: