请问我想在窗口添加一个按钮怎么写
package com.mch0dm1n.seticom;
import javax.swing.JButton;
import javax.swing.JFrame;
public class chuangkou extends JFrame {
public chuangkou() {
this.setTitle("智伟创造");
this.setBounds(300, 200, 580, 600);
this.setSize(580, 600);
this.setLocation(300, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
this.setLocationRelativeTo(null);// 为null,启动程序时窗口将置于屏幕的中央
JButton diamondsButton[][] = new JButton[6][5];//游戏按钮数组
}
public static void main(String[] args) {
new chuangkou();
}
}