2ME低级用户界面编程.pptVIP

  • 3
  • 0
  • 约2.56万字
  • 约 77页
  • 2019-11-05 发布于广东
  • 举报
* * 8.6 动画实现 Canvas多线程编程-实现Runnable接口 int r = 0 ; public void paintAnimation(Graphics g,int x,int y,int l){ g.setColor(0,0,0); g.drawRect(x,y,l,l); } int x =50 ; int y =50 ; int length = 5 ; public void paintCross(Graphics g,int x,int y,int length){ g.setColor(255,0,0); g.drawLine(x-length,y,x+length,y); g.drawLine(x,y-length,x,y+length); } public void run(){ while(true){ r++; if (r 10)r

文档评论(0)

1亿VIP精品文档

相关文档