單項選擇題在使用FormLayout進行布局時,如果在水平拉伸窗口時,想要讓組件右邊界始終位于容器的中心位置,下面做法正確的是()。

A.為該組件創(chuàng)建的FormData對象中設(shè)置right屬性為new FormAttachment(50)
B.為該組件創(chuàng)建的FormData對象中設(shè)置right屬性為new FormAttachment(1,1,0)
C.為該組件創(chuàng)建的FormData對象中設(shè)置left屬性為new FormAttachment(50)
D.為該組件創(chuàng)建的FormData對象中設(shè)置left屬性為new FormAttachment(1,1,0)


您可能感興趣的試卷