|
-
November 23rd, 2003, 11:16 AM
#1
Repaint - flickerings
Hi,
I'm having a little problem with a Java applet .. no idea if it's solvable or if this is just the way Java applets look like. Me new to JAVA .. so me no experience to rely on 
Anyways ..
This is the applet in question. Forget the content of the fields - the pictures and the text are just placeholding bogus for now. The fields should change their color when the mouse moves over them. I do that by constantly monitoring the mouse coordinates .. and saving them. Next time the coordinates are captured, I compare them with the last ones .. if the old ones are outside the box and the new ones are inside, the color with which I drew the ractangle is changed .. and I use the command "repaint()"
The problem .. it flickers. Too much. Is there a different way with which I can draw graphics outside of the paint method that doesn't cause this kind of flickering? Or is there a way to repaint only a limited part of the screen? Or any other way in which I could improve this?
Thanks,
Jeremy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|