|
|
|
|
![]() ![]() |
Apr 9 2008, 05:42 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 6 Joined: 28-October 07 Member No.: 52,152 |
Hey there, I have made an applet that shows images moving about the screen. I have pause/resume buttons that work. But i've noticed that when the applet is interuppted by something i.e moving another window over it, it will automatically repaint.
My question is how can I stop this? How can I make it so that the only time that paint is called is when I want it to be called? Thanks in advance! This post has been edited by Roders1234: Apr 9 2008, 05:42 PM |
|
|
|
Apr 21 2008, 11:49 PM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 225 Joined: 8-April 05 Member No.: 5,385 |
Since no one has posted on this, I'll try a suggestion...
Can the Graphics object be declared final or static, or something like that? I'm not sure if this would help, but it seems like the browser is always calling repaint() so I'm not sure if there is much you can do. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 13th October 2008 - 06:11 AM |