(A338f)(有图)下列程序执行后的结果如图所示 , 下划线的代码应该是( )。 import java . awt . * ; import java . awt .event . * ; import javax . swing . * ; public class test01 extends JFrame{ public test01 ( ) { setTitle ( "布局管理器实例 ") ; Container c = getContentPane ( ) ; setLayout (new FlowLayout(_________________)) ; for ( int i = 0 ; i< 10 ; i++ ) { c. add ( new JButton ( " Button " + i) ) ; } setSize (300, 200) ; setVisible ( true ) ; } public static void main (String [ ] args) { new test01 ( ) ; } }
A.
setBounds ( 2 , 4 , 10 , 10)
B.
new GridLayout ( 3 , 4, 10,10 )
D.
new FlowLayout ( FlowLayout . RIGHT , 10,10 )