请写出创建一个JPanel对象p,并为对象p设定GridLayout布局的代码。

请写出创建一个JPanel对象p,并为对象p设定GridLayout布局的代码。
【正确答案】: