单项选择题

A. 创建GridBagLayout对象即可
B. 从GridBagLayout类派生出一个子类
C. 创建GridBagLayout对象,并将它以参数形式传递给面板的setLayout函数
D. 创建一个自定义类,实现GridBagLayout接口