单项选择题

A. 调用组件的setConstraints函数
B. 调用面板的setConstraints函数
C. 创建并设置一个GridBagConstraints对象
D. 调用表格包型布局管理器的setConstraints函数