setDefaultCloseOperation()就可以设置

可惜不是你,陪我到最后
你可以清幕呀,在paint 方法里面最前面写
g.setColor(0xffffff);
g.fillRect(0,0,this.getWidth(),this.getHeight());
g.setColor(0);
就可以去除上面的问题。在线程里面写上 repaint(); 就OK了。
你可以清幕呀,在paint 方法里面最前面写
g.setColor(0xffffff);
g.fillRect(0,0,this.getWidth(),this.getHeight());
g.setColor(0);
就可以去除上面的问题。在线程里面写上 repaint(); 就OK了。
你这麻烦嘛
直接调用父类的repaint不就可以了