作者TonyQ (骨头)
看板java
标题Re: [问题] DDR程式架构
时间Wed Mar 14 12:03:39 2007
※ 引述《maxisam (伪.强者)》之铭言:
: ※ 引述《TonyQ (骨头)》之铭言:
: : you got it,
: : 应该说 把你要draw的目标元件扔进去做参考
: 这样做可以 有跑出来 不过 为什麽之前那样不行呢 @@?
: 我以前有这样做过 不过 我觉得这样好像有点物件乱扯的感觉
: 感觉很没有结构 :( 是我搞错了吗 @@"
我刚刚找不到参考资料,现在翻到了。
贴上来参考
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html#dispose()
Graphics objects
which are provided as arguments to the paint and update
methods of components
are automatically released by the system when those
methods return. For efficiency, programmers should call dispose when finished
using a Graphics object only if it was created directly from a component or
another Graphics object.
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone
everything
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.27.68