Click to See Complete Forum and Search --> : Button's not appearing in applet


august
11-20-2005, 01:29 PM
What could be the reason for why a button isn't drawn on the screen of an applet until another window comes into focus then suddenly the button appears? And is basically of very shaky quality?

in this case, the button is created in the init(), while the paint() does a bunch of loops and draws shapes. Only the button and its event has problems.

Oak
11-20-2005, 02:55 PM
Have you created a seperate Thread to perform the animation?

http://www.javaworld.com/javaworld/jw-03-1996/jw-03-animation.html

august
11-20-2005, 03:56 PM
No. Does change of background color realy count as animation and needs to be treated as such?

Oh, I'm going to check out your link, I mean Oak you're just a heck of a helper.