public GamePanel(String path, JFrame father){
this.backGrand = new ImageIcon(path).getImage();
this.startGame = new JButton("开始游戏");
this.father = father;
this.add(startGame);
startGame.setLocation(200, 200); }

public void paint(Graphics g) {
super.paint(g);
this.setBackground(Color.red);
System.out.println("ff");
g.drawImage(backGrand, 0, 0, 500, 400, null);

}
调用paint时按钮没有了。。