[4002] in java-interest
Re: Painting Images
daemon@ATHENA.MIT.EDU (Per Danvind)
Thu Dec 7 06:56:40 1995
To: "Cristini, Jamie" <Cristinij@segaoa.com>
cc: "'java-interest@java.sun.com'" <java-interest@java.sun.com>
In-reply-to: Your message of "Wed, 06 Dec 1995 17:37:00 PST."
<30C645D7@blackhole.segaoa.com>
Date: Thu, 07 Dec 1995 11:10:38 +0100
From: Per Danvind <perry@cdt.luth.se>
>
> Howdie java folks,
> I have an easy question, which is driving me crazy! How does one load
> images in completely
> before the applet starts? My applets seem to display the images while
> their loading. Is it possible to hold off on starting the applet until
> these images are loaded?
>
> Thanks in advance,
> Jamie Cristini
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
Hi,
Try checking the width of the image you want to wait for.
It will be -1 until it's loaded. Put it in a while-loop
with a sleep() inside or someting like that.
Good luck!
--
Per
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com