André Wagner wrote:
..
>I'm loading classes during the execution of a applet, ...
Why?
...
>It works fine, but if the class is big, the applet execution hangs
>until the whole class is downloaded from the server and loaded. Is
>there any way I can download the class (showing the user a progressbar
>for that) and load the bytecode?
It might be possible to offer this information if the applet
is launched using web start, the classes added to the
classpath and specified as a 'lazy' download.
Here is my latest best effort to achieve the lazy
downloads with a progress dialog.
<http://www.physci.org/jws/cache/#latesteg>
This example deals with images as the resources,
but the API is more intended for classes.
I experienced some problems with the progress
dialog offered, that I have not had time to resolve.
Maybe you can track down solutions.
HTH
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.asp...neral/200705/1