Results 1 to 4 of 4
Thread: Applet drawing before visible
- 07-01-2010, 09:29 PM #1
Member
- Join Date
- Feb 2010
- Location
- Ross Lunar Capsule 2571
- Posts
- 15
- Rep Power
- 0
Applet drawing before visible
So, I wrote this big applet interface to one of our local control systems. Lately I modified it so that the first thing it does is show an animation for two seconds before showing the controls. (Just eye candy to impress the clients.)
This works just fine when I first visit the applet -- the animation plays for two seconds. And it works fine if I clear the class cache and then refresh the browser window.
However, if I simply refresh the browser window, then only something like the last half of the animation plays, or sometimes none at all. It seems to me like the applet starts running before it is actually possible to see the applet painting in the browser window. So, in other words, the user doesn't start watching the animation until it is half-finished. (Tested this under Firefox.)
My question: Is there some trick to ensure that nothing is painted to the applet window until it is actually possible for the user to see it?
- 07-01-2010, 10:54 PM #2
Not sure. How are you using the Constructor, init() and start() methods?
- 07-01-2010, 11:01 PM #3
Member
- Join Date
- Feb 2010
- Location
- Ross Lunar Capsule 2571
- Posts
- 15
- Rep Power
- 0
- 07-01-2010, 11:27 PM #4
Similar Threads
-
Tab or Table not visible
By madhuvanthi2312 in forum SWT / JFaceReplies: 1Last Post: 04-25-2009, 09:00 AM -
Drawing a picture (applet) using methods
By Jeremy8 in forum New To JavaReplies: 3Last Post: 04-07-2009, 11:36 PM -
only ~200x200px Applet area visible
By jumper19 in forum New To JavaReplies: 8Last Post: 02-02-2009, 03:05 AM -
Drawing Applet
By Urgle in forum New To JavaReplies: 6Last Post: 11-19-2008, 08:38 AM -
Shape drawing applet not working...
By evapisces in forum Java AppletsReplies: 0Last Post: 11-17-2008, 11:46 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks