用绘图的方式把图片画上就可以了public void paint(Graphics g){ImageIcon img = new ImageIcon("pic.png");g.drawImage(img,x,y,this);}