public void paintComponent(Graphics g) { // 清屏 super.paintComponents(g); g.drawImage(im, 0, 0, this.getWidth(), this.getHeight(), this); }