在java的jpanel繪製圖形

在java的jpanel繪製圖形 使用paint方法,在裏面使用super.paint清除以前的殘留 在while裏使用repaint進行循環繪畫java public void display() { this.repaint(); } public void paint(Graphics g) { super.paint(g); dao.drawBackground(g);
相關文章
相關標籤/搜索