单项选择题

A.利用组件的setConstraints函数设置约束
B.利用面板的setConstraints函数设置约束
C.利用而已管理器的putConstraints函数设置约束
D.利用SpringLayoutConstraints对象设置约束